Categorygithub.com/vpnbeast/golang-commons
modulepackage
0.0.31
Repository: https://github.com/vpnbeast/golang-commons.git
Documentation: pkg.go.dev

# README

Golang Commons

CI Go Report Card Quality Gate Status Reliability Rating Maintainability Rating Security Rating Coverage Go version License

This is a common library for Vpnbeast backend services which are written with Golang.

Development

This project requires below tools while developing:

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.