Docker-DCO-1.1-Signed-off-by: SvenDowideit <SvenDowideit@home.org.au> (github: SvenDowideit)
| ... | ... |
@@ -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. |