1
0
mirror of https://github.com/beego/bee.git synced 2024-11-16 20:30:54 +00:00

fix bug: parsejson must use ptr

fix bug: parsejson must use ptr
This commit is contained in:
radioinmyhead 2017-02-16 18:20:47 +08:00 committed by GitHub
parent 77acc749e4
commit 3c1fc915d7

View File

@ -90,7 +90,7 @@ func loadConfig() (err error) {
if fileInfo.Name() == "bee.json" {
logger.Info("Loading configuration from 'bee.json'...")
err = parseJSON(path, conf)
err = parseJSON(path, &conf)
if err != nil {
logger.Errorf("Failed to parse JSON file: %s", err)
return err