1
0
mirror of https://github.com/rancher/os.git synced 2025-07-14 15:14:03 +00:00
os/config/default.go

16 lines
243 B
Go
Raw Normal View History

2015-02-17 05:08:48 +00:00
package config
func NewConfig() *Config {
return ReadConfig(OsConfigFile)
}
func ReadConfig(file string) *Config {
if data, err := readConfig(nil, file); err == nil {
c := &Config{}
c.merge(data)
return c
} else {
return nil
2015-02-17 05:08:48 +00:00
}
}