1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 14:23:11 +00:00
Files
os/config/default.go

16 lines
243 B
Go
Raw Normal View History

2015-02-16 22:08:48 -07: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-16 22:08:48 -07:00
}
}