Skip to content

BeaverHouse/go-common

Repository files navigation

Logo

Common Go library for personal use, in clean, standard code style

Go License


Description

Common Go library for personal use, in clean, standard code style.


What's in the module

  • convpgtype (github.com/jackc/pgx/v5/pgtype) ⇄ Go pointer conversion
  • database/postgres — Postgres connection pool initialization
  • env — environment variable loading
  • errorhandle — protocol-agnostic error kinds and adapter mapping
  • logger — structured logging (SimpleLogger for local, JSON ZapLogger for deployed)
  • urlutil — URL parsing and validation
  • validation — validator initialization and usage

Installation

go get github.com/BeaverHouse/go-common

Releasing

  1. Change the code and merge to main.
  2. Run the release workflow (Actions tab). It tags v1.0.<YYYYMMDD> by default, or any SemVer tag you pass as input.
  3. Run go get github.com/BeaverHouse/go-common@latest to pull the new version.

Contributing

See the CONTRIBUTING.md.



Attribution

Logo icon is downloaded from Go official homepage.

About

Common Go library for personal use, in clean, standard code style

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages