envvar

package
v0.0.0-...-891ad17 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(path, envPrefix string, config interface{}) error

LoadConfig will load files optionally from the json file stored at path, then will override those values based on the envconfig struct tags. The envPrefix is how we prefix our environment variables.

func LoadFile

func LoadFile(path string, config interface{}) error

LoadFile unmarshalls a json file into a config struct

Types

This section is empty.

Jump to

Keyboard shortcuts

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