File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 "log"
66 "os"
77
8- "github.com/fpatron/betterjson "
8+ "github.com/fpatron/jsonc "
99)
1010
1111type Metadata struct {
@@ -48,7 +48,7 @@ func main() {
4848 }
4949
5050 var example ExampleData
51- err = betterjson .Unmarshal (data , & example )
51+ err = jsonc .Unmarshal (data , & example )
5252 if err != nil {
5353 log .Fatalf ("Failed to parse example.json: %v" , err )
5454 }
Original file line number Diff line number Diff line change 1- package betterjson
1+ package jsonc
22
33import (
44 "encoding/json"
Original file line number Diff line number Diff line change 1- package betterjson
1+ package jsonc
22
33import (
44 "encoding/json"
Original file line number Diff line number Diff line change 1- module github.com/fpatron/betterjson /v2
1+ module github.com/fpatron/jsonc /v2
22
33go 1.26.0
Original file line number Diff line number Diff line change 1- package betterjson
1+ package jsonc
22
33import "encoding/json/v2"
44
Original file line number Diff line number Diff line change 1- package betterjson
1+ package jsonc
22
33import (
44 "encoding/json/v2"
You can’t perform that action at this time.
0 commit comments