Common Go library for personal use, in clean, standard code style
Common Go library for personal use, in clean, standard code style.
conv—pgtype(github.com/jackc/pgx/v5/pgtype) ⇄ Go pointer conversiondatabase/postgres— Postgres connection pool initializationenv— environment variable loadingerrorhandle— protocol-agnostic error kinds and adapter mappinglogger— structured logging (SimpleLoggerfor local, JSONZapLoggerfor deployed)urlutil— URL parsing and validationvalidation— validator initialization and usage
go get github.com/BeaverHouse/go-common- Change the code and merge to
main. - Run the
releaseworkflow (Actions tab). It tagsv1.0.<YYYYMMDD>by default, or any SemVer tag you pass as input. - Run
go get github.com/BeaverHouse/go-common@latestto pull the new version.
See the CONTRIBUTING.md.
Logo icon is downloaded from Go official homepage.