27 lines
704 B
Go
27 lines
704 B
Go
package codit
|
|
|
|
import codit_config "codit/config"
|
|
|
|
// this public file is to workaround the import-cycle issue.
|
|
// codit/config can't import from the root package.
|
|
|
|
type Config = codit_config.Config
|
|
|
|
type Duration = codit_config.Duration
|
|
|
|
func LoadConfig(path string) (Config, error) {
|
|
return codit_config.Load(path)
|
|
}
|
|
|
|
func LoadConfigWithEnvPrefix(path string, envPrefix string) (Config, error) {
|
|
return codit_config.LoadWithEnvPrefix(path, envPrefix)
|
|
}
|
|
|
|
func LoadConfigFiles(paths []string) (Config, error) {
|
|
return codit_config.LoadFiles(paths)
|
|
}
|
|
|
|
func LoadConfigFilesWithEnvPrefix(paths []string, envPrefix string) (Config, error) {
|
|
return codit_config.LoadFilesWithEnvPrefix(paths, envPrefix)
|
|
}
|