Studies following Refactoring Guru
A pattern isn’t just a recipe for structuring your code in a specific way. It can also communicate to other developers the problem the pattern solves.
- Unit tests:
make test
or
go test ./... -race -coverprofile=coverage.out -covermode=atomic
- Coverage
make test-cov
or
go test ./... -race -coverprofile=coverage.out -covermode=atomic && go tool cover -html=./coverage.out -o coverage.html