conf

package
v0.0.0-...-c943480 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvConfigPath   = "CONF_PATH"
	EnvVarNamespace = ""
	EnvDelimiter    = "."
	PropDelimiter   = "."
	ConfFile        = ".env"
)

Variables

This section is empty.

Functions

func GetEnv

func GetEnv(key, fallback string) string

GetEnv lookup an environment variable or fallback

func NewConf

func NewConf(provider koanf.Provider) (*koanf.Koanf, error)

NewConf instantiates a new dotenv config with environment variables for context !!Note!! environment variables must be configured BEFORE calling NewConf

func Provider

func Provider(confName string) *file.File

Types

type Conf

type Conf struct{}

Jump to

Keyboard shortcuts

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