common golang packages
| module | benchmarks | latest version | report | docs |
|---|---|---|---|---|
| database/pginit | benches | 2.2.34 | ||
| database/pgx-slog | benches | 1.0.38 | ||
| http/health | benches | 1.2.0 | ||
| http/middleware/valkeydempotency | benches | 0.4.9 | ||
| http/middleware/idempotency | benches | 0.10.0 | ||
| http/middleware/writablecontext | benches | 0.2.0 | ||
| shutdown | benches | 1.3.5 |
Force the use of ssh instead of https for git:
git config --global --add url."git@github.com:".insteadOf "https://github.com/"Allow internal repositories under a private company, simply add this line to your .zshrc or other, accordingly:
export GOPRIVATE="github.com/induzo/*"Let's take an example of an opentelemetry module.
- Make sure the module is fully tested (at least 95% coverage, try to reach 100%), linted
- Create a branch feat/opentelemetry
- Copy in the right folder (that's quite subjective), in our case, ./monitoring/otelinit
- Add it to the workspace
go work use ./monitoring/otelinit- Add your file, commit your files (respecting conventional commits) and tag the commit properly, according to a semantic versioning
git add ./monitoring/otelinit
git commit -m "feat: add monitoring opentelemetry module" ./monitoring/otelinit
git tag "monitoring/otelinit/v1.0.0"- Create a pull request
- Wait for review
- database/pginit
- http/middleware/valkeydempotency
pre-commit install -t commit-msg -t pre-commit -t pre-push