Categorygithub.com/phe-lab/go-cm/cfg
modulepackage
0.3.0
Repository: https://github.com/phe-lab/go-cm.git
Documentation: pkg.go.dev

# README

go-cm/cfg

  • Koanf integrated for reading configuration
  • Read configuration from YAML file, environment variables and command-line flags

Installation

go get github.com/phe-lab/go-cm/[email protected]

# Functions

LoadConfig loads configuration from multiple sources (file, environment variables, and flags) and unmarshals it into the given interface.

# Structs

LoadOptions defines the options used to load the configuration.