Documentation ¶
Index ¶
- func LoadConfig(files []string, format string, recursively bool) (*v4.Config, error)
- func LoadConfigToMap(files []string, format string, recursively bool) (map[string]interface{}, error)
- func ReadDir(dir string, extensions []string) ([]string, error)
- func ReadDirRecursively(dir string, extensions []string) ([]string, error)
- func ResolveFolderToFiles(paths []string, extensions []string, recursively bool) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
LoadConfig load config files to *conf.Config, it will: - resolve folder to files - try to read stdin if no file specified
func LoadConfigToMap ¶
func LoadConfigToMap(files []string, format string, recursively bool) (map[string]interface{}, error)
LoadConfigToMap load config files to map, it will: - resolve folder to files - try to read stdin if no file specified
func ReadDirRecursively ¶
ReadDirRecursively finds files according to extensions in the dir recursively
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.