Unmarshal should be a pointer otherwise

-- 2015/03/07 15:18:56 json: Unmarshal(nil *main.mcConfig)
This commit is contained in:
Harshavardhana
2015-03-07 15:19:46 -08:00
parent 77d546b0e9
commit 3b89e16ac7
+1 -1
View File
@@ -46,7 +46,7 @@ func getMcConfig() (config *mcConfig, err error) {
return nil, err
}
err = json.Unmarshal(configBytes, config)
err = json.Unmarshal(configBytes, &config)
if err != nil {
return nil, err
}