Skip to content

Commit

Permalink
Using the Fake Config function from Beego
Browse files Browse the repository at this point in the history
  • Loading branch information
silenteh committed Apr 15, 2018
1 parent 504b470 commit f3f7b14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ func init() {
if err == nil {
return
}

AppConf, err = config.NewConfig("ini", "empty.ini")
}

if err != nil {
log.Printf("Could not find any config file in the following paths: %+v\n", confFileLocations)
}

AppConf = config.NewFakeConfig()

}
Empty file removed empty.ini
Empty file.

0 comments on commit f3f7b14

Please sign in to comment.