- Format:
golangci-lint fmt - Lint:
golangci-lint run - Test all:
go test -race ./... - Test single:
go test ./internal/cache -run TestMountRequest_EnabledModes
- Go 1.25+, use
anyinstead ofinterface{} - Imports: standard → external →
github.com/namespacelabs/spacectl(enforced by gci) - Formatting: gofumpt with extra rules enabled
- Errors: wrap with
fmt.Errorf("context: %w", err) - Logging: use
log/slog(not log package) - Tests: use
_testpackage suffix to make sure we test the public API