Fix deserializing full object instead of property

This commit is contained in:
jacob1123 committed 2020-11-21 21:03:31 +01:00
1 parent ed15632238
commit 80acc7054f
1 file changed
+1 -1
+1 -1
View File
@@ -29,7 +29,7 @@ func main() {
fmt.Println("Loading file", *fromFile)
byteValue, _ := ioutil.ReadFile(*fromFile)
err := json.Unmarshal(byteValue, filesMap)
err := json.Unmarshal(byteValue, &filesMap.FilesBySize)
if err != nil {
panic(err)
}