dcfg

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Cfg *viper.Viper
)

Functions

func InitConfig

func InitConfig(cfgDir string) error

InitConfig initializes the config module using the given cfgDir to load config files

func SetRuntimeEnv

func SetRuntimeEnv(newvar string)

SetRuntimeEnv sets the runtime environment envar This envar is used to get the runtime environment, e.g prod or staging or devint

func SetVerbose

func SetVerbose(f bool)

SetVerbose sets the flag to enable/disable the verbosity

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL