Fix deserializing full object instead of property

This commit is contained in:
Jan Bader 2020-11-21 20:52:57 +01:00
parent ed15632238
commit 80acc7054f

View File

@ -29,7 +29,7 @@ func main() {
fmt.Println("Loading file", *fromFile) fmt.Println("Loading file", *fromFile)
byteValue, _ := ioutil.ReadFile(*fromFile) byteValue, _ := ioutil.ReadFile(*fromFile)
err := json.Unmarshal(byteValue, filesMap) err := json.Unmarshal(byteValue, &filesMap.FilesBySize)
if err != nil { if err != nil {
panic(err) panic(err)
} }