mirror of
https://github.com/JaCoB1123/dupe-finder.git
synced 2025-05-18 06:01:56 +02:00
Fix deserializing full object instead of property
This commit is contained in:
parent
ed15632238
commit
80acc7054f
2
main.go
2
main.go
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user