diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-07-05 23:45:03 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-07-05 23:46:23 +0200 |
commit | c5342e90974c7b857b462b06afdcbd3498a1bcf4 (patch) | |
tree | 2a1d7ac7bedf274e9cbc5d2338cd5a5b7bb850ca /skate | |
parent | e9a3ce1f7112a55bffeeb6d7a9dd26584da8276d (diff) | |
download | refcat-c5342e90974c7b857b462b06afdcbd3498a1bcf4.tar.gz refcat-c5342e90974c7b857b462b06afdcbd3498a1bcf4.zip |
wip: debug with stdlib json
Diffstat (limited to 'skate')
-rw-r--r-- | skate/reduce.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/skate/reduce.go b/skate/reduce.go index 61e8cd6..c941a67 100644 --- a/skate/reduce.go +++ b/skate/reduce.go @@ -26,6 +26,8 @@ import ( "sync" "time" + stdjson "encoding/json" + "git.archive.org/martin/cgraph/skate/set" "git.archive.org/martin/cgraph/skate/xio" "git.archive.org/martin/cgraph/skate/zipkey" @@ -64,7 +66,7 @@ func groupLogf(g *zipkey.Group, s string, vs ...interface{}) { // match result, e.g. for doi matches. func ZippyExact(releases, refs io.Reader, matchResult MatchResult, w io.Writer) error { var ( - enc = xio.NewSafeEncoder(json.NewEncoder(w)) + enc = xio.NewSafeEncoder(stdjson.NewEncoder(w)) keyer = makeKeyFunc("\t", 1) i = 0 bref BiblioRef |