aboutsummaryrefslogtreecommitdiffstats
path: root/skate/cmd/skate-from-unstructured/main.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/cmd/skate-from-unstructured/main.go
parent50c4efb3c408b98c2fb7a4e40a92a6c34ef226d0 (diff)
downloadrefcat-4777c2014f0d770a5c1947f86bf7f8244856a598.tar.gz
refcat-4777c2014f0d770a5c1947f86bf7f8244856a598.zip
switch to github.com/segmentio/encoding/json
Diffstat (limited to 'skate/cmd/skate-from-unstructured/main.go')
-rw-r--r--skate/cmd/skate-from-unstructured/main.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/skate/cmd/skate-from-unstructured/main.go b/skate/cmd/skate-from-unstructured/main.go
index 8ebc613..2c6e81f 100644
--- a/skate/cmd/skate-from-unstructured/main.go
+++ b/skate/cmd/skate-from-unstructured/main.go
@@ -12,13 +12,12 @@ import (
"git.archive.org/martin/cgraph/skate"
"git.archive.org/martin/cgraph/skate/parallel"
- jsoniter "github.com/json-iterator/go"
+ json "github.com/segmentio/encoding/json"
)
var (
numWorkers = flag.Int("w", runtime.NumCPU(), "number of workers")
batchSize = flag.Int("b", 100000, "batch size")
- json = jsoniter.ConfigCompatibleWithStandardLibrary
bytesNewline = []byte("\n")
PatDOI = regexp.MustCompile(`10[.][0-9]{1,8}/[^ ]*[\w]`)