Build with Make
This project uses a Makefile. Always prefer make targets over running go commands directly.
Rules
- •Before running any
go build,go test,go run,go vet,go fmt, orgolangci-lintcommand, check the Makefile for a corresponding target. - •Use the Makefile target instead of the raw
gocommand. For example:- •
make buildinstead ofgo build ./... - •
make testinstead ofgo test ./... - •
make lintinstead ofgolangci-lint run - •
make runinstead ofgo run main.go - •
make fmtinstead ofgo fmt ./...
- •
- •If you need to discover available targets, run
make helpfirst. If that fails, read the Makefile directly. - •Only fall back to raw
gocommands if no relevant Makefile target exists for the task.