Skip to content
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

code style can be better #3

Open
GoogleCodeExporter opened this issue Mar 18, 2015 · 0 comments
Open

code style can be better #3

GoogleCodeExporter opened this issue Mar 18, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

1. use `go fmt` 
2. use dot imports may conflict with other names defined in the program
3. "for i, _ := range y {" can be replaced with "for i := range y {"
4. "var fZero float64 = float64(0.0)" -> "var fZero = float64(0.0)"
5. "var x float64 = 0" -> "var x float64"
6. don't use underscores in Go names
7. don't use ALL_CAPS in Go names; use CamelCase

Original issue reported on code.google.com by [email protected] on 5 Nov 2013 at 12:35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant