Standardized: use recommend extension & forward compatibility before 1.0
This commit is contained in:
@ -63,7 +63,7 @@ func Init(dir string) error {
|
||||
}
|
||||
}
|
||||
|
||||
// initial config.yml
|
||||
// initial config.yaml
|
||||
if _, err := os.Stat(C.Path.Config()); os.IsNotExist(err) {
|
||||
log.Info("Can't find config, create an empty file")
|
||||
os.OpenFile(C.Path.Config(), os.O_CREATE|os.O_WRONLY, 0644)
|
||||
|
Reference in New Issue
Block a user