These instructions apply to the entire repository.
- Follow standard Go conventions and existing patterns.
- Format all Go code using
gofmt -s -wbefore committing. - Document all exported identifiers.
- Use meaningful variable and function names.
- Use the
slogpackage for logging following the examples inCONTRIBUTING.md. - Validate all input and avoid logging sensitive data.
- Write tests for all new features and maintain coverage.
- Integration tests belong in
integration_test.go. - Internal tests belong in
internal/internal_test.go. - Examples go in
examples_test.go. - Run
go test -v ./...andgo test -bench .(when benchmarking) before submitting a PR.
- Update
README.mdand other docs for significant changes. - Include examples for new functionality.
- Use the format
type(scope): Brief description. - Provide a detailed explanation if necessary.
- Allowed types:
feat,fix,docs,style,refactor,test,chore.
- Ensure code is formatted and all tests pass.
- Provide a clear description of changes and reference related issues.
- List notable changes and any breaking changes.