module
0.0.0-20250228153303-1c24ddc7d227
Repository: https://github.com/teamsorghum/go-common.git
Documentation: pkg.go.dev
# README
About
This repository contains the implementations of some commonly used libraries.
Development
Requirements:
- Install go version specified in
go.mod
and.tool-versions
. You can use asdf to manage multiple versions. - Install mockgen. If you are using asdf to manage versions, execute
asdf reshim golang
after installing mockgen. - Install golangci-lint.
- Install wire.
- Install container environment. You can choose either docker or podman or orbstack.
- Execute the following commands to install git hooks:
- Pre-commit hook will run checks and tests before committing:
ln -s ../../githooks/pre-commit .git/hooks/
- Commit-msg hook will check where commit message conforms to conventional commits:
ln -s ../../githooks/commit-msg .git/hooks/
Test:
cd deployments && cp .env.example .env
and edit.env
, thensource .env
.- Launch containers
cd deployments && docker compose up -d
. - Now you can run tests via
go test
command.
# Packages
No description provided by the author