Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SupportedExts = []string{"json", "yml", "yaml", "toml"}
SupportedExts are universally supported extensions.
Functions ¶
func Initialize ¶
Initialize your config
Types ¶
type AppENV ¶
type AppENV string
AppENV ...
const ( // Development ... Development AppENV = "development" // GlobalDevelopment ... GlobalDevelopment AppENV = "g-development" // Staging ... Staging AppENV = "staging" // Production ... Production AppENV = "production" // GlobalProduction ... GlobalProduction AppENV = "g-production" // K8s ... K8s AppENV = "k8s" )
type Configer ¶
type Configer struct {
// contains filtered or unexported fields
}
Configer config manager
type FileNotFoundError ¶
type FileNotFoundError struct {
// contains filtered or unexported fields
}
FileNotFoundError denotes failing to find configuration file.
func (FileNotFoundError) Error ¶
func (e FileNotFoundError) Error() string
Error returns the formatted configuration error.
type InvalidConfigTypeError ¶
type InvalidConfigTypeError string
InvalidConfigTypeError denotes an invalid configuration type
func (InvalidConfigTypeError) Error ¶
func (str InvalidConfigTypeError) Error() string
Error returns the formatted configuration error.
type ParseError ¶
type ParseError struct {
// contains filtered or unexported fields
}
ParseError denotes failing to parse configuration file.
func (ParseError) Error ¶
func (pe ParseError) Error() string
Error returns the formatted configuration error.
type UnsupportedConfigError ¶
type UnsupportedConfigError string
UnsupportedConfigError denotes encountering an unsupported configuration file type.
func (UnsupportedConfigError) Error ¶
func (str UnsupportedConfigError) Error() string
Error returns the formatted configuration error.
Click to show internal directories.
Click to hide internal directories.