Documentation ¶
Index ¶
- Variables
- func CastValue(src, dst reflect.Value)
- func Init(appName string) (interface{}, error)
- func InitConfig(appName, userRunned string, into interface{}) error
- func InitConfigWithExplicitConfigPaths(appName, globalPath, localPath string, into interface{}) error
- func ParseConfig(appName string, cfg interface{}) error
- func ParseDir(path string, into interface{}) error
- func ParseEnvFile(path, prefix string, into interface{}) error
- type ErrInvalidSpec
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ConfigScheme interface{}
)
Functions ¶
func InitConfig ¶
func InitConfigWithExplicitConfigPaths ¶
func InitConfigWithExplicitConfigPaths(appName, globalPath, localPath string, into interface{}) error
DEPRECATED: No, seriously, this is just for examples and testing. Use only InitConfig, it do all job for you
func ParseConfig ¶
func ParseEnvFile ¶
Types ¶
type ErrInvalidSpec ¶
type ErrInvalidSpec struct{}
func (*ErrInvalidSpec) Error ¶
func (e *ErrInvalidSpec) Error() string
Click to show internal directories.
Click to hide internal directories.