-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some short declarations stopped working in 6g #394
Labels
Comments
Comment 1 by kenliz@cruzio.com: This problem does not exist in the current "release" version: d1b75410b793 tip which is installed by emptying the $GOROOT directory and doing: hg clone -r release https://go.googlecode.com/hg/ $GOROOT However, if one follows the instructions when submitting a new issue and does: hg pull -u and then does ./all.bash then the problem occurs... (I was getting ready to report some problems related to channels and the scheduler when I ran into this...) |
In the tip release, ReadDir is in ioutil "io/ioutil". See below: package main import ( "fmt"; ioutil "io/ioutil"; ) func main() { dirs, err := ioutil.ReadDir("abc"); if err != nil { fmt.Println("Error reading dir: ", "abc", err); } else { for i, d := range dirs { fmt.Println(i , d); } } } |
Comment 3 by kenliz@cruzio.com: Thanks. So this is just a case of functionality migrating... This can be closed. |
I think we forgot to mention this in the release notes. Apologies. Owner changed to r...@golang.org. Status changed to WontFix. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by kenliz@cruzio.com:
The text was updated successfully, but these errors were encountered: