mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 11:36:23 +00:00
706 B
706 B
date | id | title |
---|---|---|
2020-08-26 | a8b17c59-bf17-4dc8-a0cd-5bf68b2e15c1 | Golang tooling |
Documentation
Install godoc with go get golang.org/x/tools/cmd/godoc
Documentation can be generated with
godoc --http :8000
Linters
Testing
Code coverage
go test -cover
Race conditions
go test -race
Vetting
Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string. Vet uses heuristics that do not guarantee all reports are genuine problems, but it can find errors not caught by the compilers.
go vet