package
module
Version:
v0.0.0-...-905c385
Opens a new window with list of versions in this module.
Published: Jan 14, 2018
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
config
For handling app configuration
Documentation
¶
RelativeResource returns the file path
1 - searchs inside dirs, in the same order of dirs
2 - searchs inside working directory
3 - searchs inside app directory
otherwise returns os.ErrNotExist error
type Loader interface {
Load(ptr interface{}, filePath ...string) error
}
Loader loads the config into a struct which is passed as a pointer
LoaderFunc is a function type that implements Loader
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.