Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
InvalidEnvPrefix = errors.New("invalid env prefix")
)
Functions ¶
func IsDevelopment ¶
func IsDevelopment() bool
Types ¶
type AppConfig ¶
type AppConfig struct {
// contains filtered or unexported fields
}
func NewAppConfig ¶
func NewAppConfig(envPrefix string, defaults []DefaultValue) *AppConfig
func (*AppConfig) GetConfigValues ¶
func (*AppConfig) InitializeAppConfig ¶
type DefaultValue ¶
func ExtractConfigValues ¶
func ExtractConfigValues(config interface{}) ([]DefaultValue, error)
Click to show internal directories.
Click to hide internal directories.