Browse code

gofmt does not result in the same thing as go fmt -s file.go, which is what travis tests for

Docker-DCO-1.1-Signed-off-by: SvenDowideit <SvenDowideit@home.org.au> (github: SvenDowideit)

SvenDowideit authored on 2014/05/28 09:56:37
Showing 1 changed files
... ...
@@ -77,13 +77,8 @@ well as a clean documentation build. See ``docs/README.md`` for more
77 77
 information on building the docs and how docs get released.
78 78
 
79 79
 Write clean code. Universally formatted code promotes ease of writing, reading,
80
-and maintenance. Always run `go fmt` before committing your changes. Most
81
-editors have plugins that do this automatically, and there's also a git
82
-pre-commit hook:
83
-
84
-```
85
-curl -o .git/hooks/pre-commit https://raw.githubusercontent.com/edsrzf/gofmt-git-hook/master/fmt-check && chmod +x .git/hooks/pre-commit
86
-```
80
+and maintenance. Always run `gofmt -s -w file.go` on each changed file before
81
+committing your changes. Most editors have plugins that do this automatically.
87 82
 
88 83
 Pull requests descriptions should be as clear as possible and include a
89 84
 reference to all the issues that they address.