/go-workout-01

Go's workout 01 - Learn Go with Tests

Primary LanguageGoApache License 2.0Apache-2.0

go-workout-01

Go's workout 01, based on Learn Go with Tests

Go commands

To run test

go test

To run test with coverage

go test -cover

To run test (verbose)

go test -test.v

To run a (particular) test

go test -run <TestName>
go test -run TestArea

To run test with benchmark

go test -bench=<LOCATION>
go test -bench=.

To run test with the race detector

go test -race

To find errors not caught by the compiler

go vet