modulepackage
0.0.31
Repository: https://github.com/vpnbeast/golang-commons.git
Documentation: pkg.go.dev
# README
Golang Commons
This is a common library for Vpnbeast backend services which are written with Golang.
Development
This project requires below tools while developing:
- Golang 1.17
- pre-commit
- golangci-lint - required by pre-commit
After installed pre-commit, make sure that you've completed the below final installation steps:
- Make sure that you've installed pre-commit for our git repository in root directory of the project:
$ pre-commit install
- Add below custom variables to
.git/hooks/pre-commit
in the root of our git repository:# custom variable definition for local development os.environ["CONFIG_PATH"] = "./" os.environ["ACTIVE_PROFILE"] = "unit-test"
License
Apache License 2.0
# Functions
GetLogger returns the shared *zap.Logger.
InitOptions gets options interface and appName as parameter and loads the configuration from remote config store.