Created
December 27, 2017 10:54
-
-
Save orasik/c1399a994581fae76c2a1c7ed2597cb8 to your computer and use it in GitHub Desktop.
Go code analysis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Run this file inside your go project | |
# This will format your go files and write to them | |
gofmt -w *.go | |
# It will suggest style mistakes and missing docs, you'll need to manually fix them | |
# to install: go get -u github.com/golang/lint/golint | |
golint *.go | |
# examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string. | |
go vet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment