Skip to content

Commit 5bf95b0

Browse files
committed
add go-json
1 parent fcc74ae commit 5bf95b0

File tree

10 files changed

+24
-11
lines changed

10 files changed

+24
-11
lines changed

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ require (
5656

5757
require (
5858
cloud.google.com/go/pubsub v1.30.0
59+
github.com/goccy/go-json v0.10.2
5960
github.com/newrelic/go-agent v2.1.0+incompatible
6061
gorm.io/driver/mysql v1.4.5
6162
gorm.io/driver/postgres v1.4.6

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ github.com/gobuffalo/packd v0.1.0/go.mod h1:M2Juc+hhDXf/PnmBANFCqx4DM3wRbgDvnVWe
174174
github.com/gobuffalo/packr/v2 v2.0.9/go.mod h1:emmyGweYTm6Kdper+iywB6YK5YzuKchGtJQZ0Odn4pQ=
175175
github.com/gobuffalo/packr/v2 v2.2.0/go.mod h1:CaAwI0GPIAv+5wKLtv8Afwl+Cm78K/I/VCm/3ptBN+0=
176176
github.com/gobuffalo/syncx v0.0.0-20190224160051-33c29581e754/go.mod h1:HhnNqWY95UYwwW3uSASeV7vtgYkT2t16hJgV3AEPUpw=
177+
github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU=
178+
github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I=
177179
github.com/gohttp/pprof v0.0.0-20141119085724-c9d246cbb3ba h1:OckY4Dk1WhEEEz4zYYMsXG5f6necMtGAyAs19vcpRXk=
178180
github.com/gohttp/pprof v0.0.0-20141119085724-c9d246cbb3ba/go.mod h1:V97TX7IXWIioKfmy0IKnnBzsC1jRXP2VicslN9O8IIQ=
179181
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=

pkg/entity/flag_snapshot.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
package entity
22

33
import (
4-
"encoding/json"
54
"fmt"
6-
5+
"github.com/goccy/go-json"
76
"github.com/openflagr/flagr/pkg/config"
87
"github.com/openflagr/flagr/pkg/util"
98
"github.com/sirupsen/logrus"

pkg/entity/variant.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ package entity
22

33
import (
44
"database/sql/driver"
5-
"encoding/json"
65
"fmt"
6+
"github.com/goccy/go-json"
77

88
"github.com/openflagr/flagr/pkg/util"
99
"github.com/spf13/cast"

pkg/handler/crud_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package handler
22

33
import (
4-
"encoding/json"
54
"fmt"
5+
"github.com/goccy/go-json"
66
"testing"
77

88
"github.com/openflagr/flagr/pkg/entity"

pkg/handler/data_record_frame.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ package handler
22

33
import (
44
"encoding/base64"
5-
"encoding/json"
6-
75
"github.com/brandur/simplebox"
86
"github.com/openflagr/flagr/pkg/util"
97
"github.com/openflagr/flagr/swagger_gen/models"
8+
9+
"github.com/goccy/go-json"
1010
)
1111

1212
type dataRecordEncryptor interface {

pkg/handler/eval.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package handler
22

33
import (
4-
"encoding/json"
54
"fmt"
5+
"github.com/goccy/go-json"
66
"math/rand"
77
"sync"
88
"time"

pkg/handler/eval_cache_fetcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package handler
22

33
import (
4-
"encoding/json"
54
"fmt"
5+
"github.com/goccy/go-json"
66
"io"
77
"net/http"
88
"os"

pkg/mapper/entity_restapi/e2r/e2r.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package e2r
22

33
import (
4-
"encoding/json"
54
"time"
65

76
"github.com/go-openapi/strfmt"
7+
"github.com/goccy/go-json"
88
"github.com/openflagr/flagr/pkg/entity"
99
"github.com/openflagr/flagr/pkg/util"
1010

swagger_gen/restapi/configure_flagr.go

Lines changed: 13 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)