aboutsummaryrefslogtreecommitdiffstats
path: root/skate/cluster.go
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-04-16 00:17:58 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-04-19 20:29:17 +0200
commit4777c2014f0d770a5c1947f86bf7f8244856a598 (patch)
tree7d8ce3527a36a6046ddccc0e1a3fa33fe1773418 /skate/cluster.go
parent50c4efb3c408b98c2fb7a4e40a92a6c34ef226d0 (diff)
downloadrefcat-4777c2014f0d770a5c1947f86bf7f8244856a598.tar.gz
refcat-4777c2014f0d770a5c1947f86bf7f8244856a598.zip
switch to github.com/segmentio/encoding/json
Diffstat (limited to 'skate/cluster.go')
-rw-r--r--skate/cluster.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/skate/cluster.go b/skate/cluster.go
index bec8154..7fc4e1b 100644
--- a/skate/cluster.go
+++ b/skate/cluster.go
@@ -4,7 +4,7 @@ import (
"regexp"
"strings"
- jsoniter "github.com/json-iterator/go"
+ json "github.com/segmentio/encoding/json"
"golang.org/x/text/unicode/norm"
)
@@ -12,7 +12,6 @@ import (
type IdentifierKeyFunc func([]byte) (string, string, error)
var (
- json = jsoniter.ConfigCompatibleWithStandardLibrary
wsReplacer = strings.NewReplacer("\t", " ", "\n", " ")
repeatedWs = regexp.MustCompile(`[ ]{2,}`)
nonWord = regexp.MustCompile(`[\W]+`)