Skip to content

Commit

Permalink
move to github.com/segmentio/encoding/json
Browse files Browse the repository at this point in the history
  • Loading branch information
miku committed Jul 7, 2021
1 parent 6c9afd0 commit 0b0c7e6
Show file tree
Hide file tree
Showing 42 changed files with 47 additions and 41 deletions.
2 changes: 1 addition & 1 deletion assetutil/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ package assetutil
import (
"bufio"
"bytes"
"encoding/json"
"github.com/segmentio/encoding/json"
"io"
"regexp"
"strings"
Expand Down
2 changes: 1 addition & 1 deletion cmd/span-amsl-discovery/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package main
import (
"bufio"
"database/sql"
"encoding/json"
"github.com/segmentio/encoding/json"
"flag"
"fmt"
"io"
Expand Down
2 changes: 1 addition & 1 deletion cmd/span-check/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main

import (
"bufio"
"encoding/json"
"github.com/segmentio/encoding/json"
"flag"
"fmt"
"os"
Expand Down
2 changes: 1 addition & 1 deletion cmd/span-crossref-members/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package main

import (
"bytes"
"encoding/json"
"github.com/segmentio/encoding/json"
"flag"
"fmt"
"io"
Expand Down
2 changes: 1 addition & 1 deletion cmd/span-crossref-snapshot/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package main
import (
"bufio"
"bytes"
"encoding/json"
"github.com/segmentio/encoding/json"
"flag"
"fmt"
"io"
Expand Down
2 changes: 1 addition & 1 deletion cmd/span-folio/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ package main

import (
"bytes"
"encoding/json"
"github.com/segmentio/encoding/json"
"flag"
"fmt"
"io"
Expand Down
2 changes: 1 addition & 1 deletion cmd/span-freeze/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ package main
import (
"archive/zip"
"crypto/sha1"
"encoding/json"
"github.com/segmentio/encoding/json"
"flag"
"fmt"
"io"
Expand Down
2 changes: 1 addition & 1 deletion cmd/span-genios-modules/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ package main
import (
"archive/zip"
"bytes"
"encoding/json"
"github.com/segmentio/encoding/json"
"encoding/xml"
"fmt"
"io/ioutil"
Expand Down
2 changes: 1 addition & 1 deletion cmd/span-hcov/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main

import (
"bufio"
"encoding/json"
"github.com/segmentio/encoding/json"
"flag"
"fmt"
"io"
Expand Down
2 changes: 1 addition & 1 deletion cmd/span-import/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main

import (
"encoding"
"encoding/json"
"github.com/segmentio/encoding/json"
"flag"
"fmt"
"io"
Expand Down
2 changes: 1 addition & 1 deletion cmd/span-join-assets/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ package main

import (
"bufio"
"encoding/json"
"github.com/segmentio/encoding/json"
"flag"
"io"
"os"
Expand Down
2 changes: 1 addition & 1 deletion cmd/span-local-data/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package main
import (
"bufio"
"bytes"
"encoding/json"
"github.com/segmentio/encoding/json"
"flag"
"fmt"
"io"
Expand Down
2 changes: 1 addition & 1 deletion cmd/span-oa-filter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main

import (
"bufio"
"encoding/json"
"github.com/segmentio/encoding/json"
"flag"
"fmt"
"os"
Expand Down
2 changes: 1 addition & 1 deletion cmd/span-redact/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package main

import (
"bufio"
"encoding/json"
"github.com/segmentio/encoding/json"
"flag"
"fmt"
"io"
Expand Down
2 changes: 1 addition & 1 deletion cmd/span-report/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ package main

import (
"bufio"
"encoding/json"
"github.com/segmentio/encoding/json"
"flag"
"fmt"
"io"
Expand Down
2 changes: 1 addition & 1 deletion cmd/span-review/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package main

import (
"bytes"
"encoding/json"
"github.com/segmentio/encoding/json"
"flag"
"fmt"
"io"
Expand Down
2 changes: 1 addition & 1 deletion cmd/span-tag/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ package main
import (
"bufio"
"bytes"
"encoding/json"
"github.com/segmentio/encoding/json"
"flag"
"fmt"
"io"
Expand Down
2 changes: 1 addition & 1 deletion cmd/span-tagger/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ package main

import (
"bufio"
"encoding/json"
"github.com/segmentio/encoding/json"
"flag"
"fmt"
"io"
Expand Down
2 changes: 1 addition & 1 deletion cmd/span-update-labels/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package main

import (
"encoding/json"
"github.com/segmentio/encoding/json"
"flag"
"fmt"
"io"
Expand Down
2 changes: 1 addition & 1 deletion cmd/span-webhookd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
package main

import (
"encoding/json"
"github.com/segmentio/encoding/json"
"flag"
"fmt"
"net"
Expand Down
2 changes: 1 addition & 1 deletion container/string.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ package container

import (
"bufio"
"encoding/json"
"github.com/segmentio/encoding/json"
"fmt"
"io"
"sort"
Expand Down
2 changes: 1 addition & 1 deletion encoding/formeta/marshal_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package formeta

import (
"encoding/json"
"github.com/segmentio/encoding/json"
"testing"
"time"
)
Expand Down
2 changes: 1 addition & 1 deletion filter/collection.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package filter

import (
"encoding/json"
"github.com/segmentio/encoding/json"

"github.com/miku/span/container"
"github.com/miku/span/formats/finc"
Expand Down
2 changes: 1 addition & 1 deletion filter/doi.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package filter

import (
"encoding/json"
"github.com/segmentio/encoding/json"

"github.com/miku/span/formats/finc"
"github.com/miku/span/xio"
Expand Down
2 changes: 1 addition & 1 deletion filter/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
package filter

import (
"encoding/json"
"github.com/segmentio/encoding/json"
"fmt"

"github.com/miku/span/formats/finc"
Expand Down
2 changes: 1 addition & 1 deletion filter/filter_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package filter

import (
"encoding/json"
"github.com/segmentio/encoding/json"
"testing"

"github.com/miku/span/formats/finc"
Expand Down
2 changes: 1 addition & 1 deletion filter/holdings.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package filter

import (
"archive/zip"
"encoding/json"
"github.com/segmentio/encoding/json"
"io"
"os"
"strings"
Expand Down
2 changes: 1 addition & 1 deletion filter/issn.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package filter

import (
"encoding/json"
"github.com/segmentio/encoding/json"
"strings"

log "github.com/sirupsen/logrus"
Expand Down
2 changes: 1 addition & 1 deletion filter/logic.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package filter

import (
"encoding/json"
"github.com/segmentio/encoding/json"
"fmt"

"github.com/miku/span/formats/finc"
Expand Down
2 changes: 1 addition & 1 deletion filter/package.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package filter

import (
"encoding/json"
"github.com/segmentio/encoding/json"

"github.com/miku/span/container"
"github.com/miku/span/formats/finc"
Expand Down
2 changes: 1 addition & 1 deletion filter/source.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package filter

import (
"encoding/json"
"github.com/segmentio/encoding/json"

"github.com/miku/span/formats/finc"
)
Expand Down
2 changes: 1 addition & 1 deletion filter/subject.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package filter

import (
"encoding/json"
"github.com/segmentio/encoding/json"

"github.com/miku/span/container"
"github.com/miku/span/formats/finc"
Expand Down
2 changes: 1 addition & 1 deletion folio/folio.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package folio

import (
"bytes"
"encoding/json"
"github.com/segmentio/encoding/json"
"fmt"
"net/http"

Expand Down
2 changes: 1 addition & 1 deletion formats/finc/solr.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
package finc

import (
"encoding/json"
"github.com/segmentio/encoding/json"
"fmt"
"strings"

Expand Down
2 changes: 1 addition & 1 deletion freeze.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package span
import (
"archive/zip"
"bytes"
"encoding/json"
"github.com/segmentio/encoding/json"
"fmt"
"io"
"io/ioutil"
Expand Down
2 changes: 1 addition & 1 deletion freeze_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package span

import (
"encoding/json"
"github.com/segmentio/encoding/json"
"io/ioutil"
"os"
"reflect"
Expand Down
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ require (
github.com/jmoiron/sqlx v1.2.0
github.com/kennygrant/sanitize v1.2.4
github.com/klauspost/compress v1.9.8 // indirect
github.com/klauspost/cpuid/v2 v2.0.8 // indirect
github.com/klauspost/pgzip v1.2.1
github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect
github.com/kr/pretty v0.2.1 // indirect
Expand All @@ -30,7 +31,7 @@ require (
github.com/miku/xmlstream v0.0.0-20190415141048-c7ce7c45f0e0
github.com/mvdan/xurls v1.1.0 // indirect
github.com/olebedev/config v0.0.0-20190528211619-364964f3a8e4
github.com/segmentio/encoding v0.1.8
github.com/segmentio/encoding v0.2.19
github.com/sethgrid/pester v0.0.0-20190127155807-68a33a018ad0
github.com/shantanubhadoria/go-roman v0.0.0-20180925203848-b6cf86aa5b76
github.com/sirupsen/logrus v1.4.2
Expand Down
5 changes: 5 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ github.com/kennygrant/sanitize v1.2.4 h1:gN25/otpP5vAsO2djbMhF/LQX6R7+O1TB4yv8Nz
github.com/kennygrant/sanitize v1.2.4/go.mod h1:LGsjYYtgxbetdg5owWB2mpgUL6e2nfw2eObZ0u0qvak=
github.com/klauspost/compress v1.9.8 h1:VMAMUUOh+gaxKTMk+zqbjsSjsIcUcL/LF4o63i82QyA=
github.com/klauspost/compress v1.9.8/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A=
github.com/klauspost/cpuid/v2 v2.0.5/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=
github.com/klauspost/cpuid/v2 v2.0.8 h1:bhR2mgIlno/Sfk4oUbH4sPlc83z1yGrN9bvqiq3C33I=
github.com/klauspost/cpuid/v2 v2.0.8/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=
github.com/klauspost/pgzip v1.2.1 h1:oIPZROsWuPHpOdMVWLuJZXwgjhrW8r1yEX8UqMyeNHM=
github.com/klauspost/pgzip v1.2.1/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs=
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
Expand Down Expand Up @@ -77,6 +80,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/segmentio/encoding v0.1.8 h1:kCTskIbhR+hubyRMflF8pTQU8Ky5Yf9MzIPgLL1AhSc=
github.com/segmentio/encoding v0.1.8/go.mod h1:RWhr02uzMB9gQC1x+MfYxedtmBibb9cZ6Vv9VxRSSbw=
github.com/segmentio/encoding v0.2.19 h1:Kshkmoz080qvUtdtakR8Bjk2sIlLS8wSvijFMEHRGow=
github.com/segmentio/encoding v0.2.19/go.mod h1:7E68jTSWMnNoYhHi1JbLd7NBSB6XfE4vzqhR88hDBQc=
github.com/sethgrid/pester v0.0.0-20190127155807-68a33a018ad0 h1:X9XMOYjxEfAYSy3xK1DzO5dMkkWhs9E9UCcS1IERx2k=
github.com/sethgrid/pester v0.0.0-20190127155807-68a33a018ad0/go.mod h1:Ad7IjTpvzZO8Fl0vh9AzQ+j/jYZfyp2diGwI8m5q+ns=
github.com/shantanubhadoria/go-roman v0.0.0-20180925203848-b6cf86aa5b76 h1:yMBHiWaX2XBKRKspoQUE25LYg6kQnIuwu8VcnDnc7Q4=
Expand Down
2 changes: 1 addition & 1 deletion quality/checks.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package quality

import (
"encoding/json"
"github.com/segmentio/encoding/json"
"errors"
"fmt"
"net/url"
Expand Down
2 changes: 1 addition & 1 deletion reviewutil/review.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package reviewutil

import (
"bytes"
"encoding/json"
"github.com/segmentio/encoding/json"
"fmt"
"io"
"io/ioutil"
Expand Down
2 changes: 1 addition & 1 deletion solrutil/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
package solrutil

import (
"encoding/json"
"github.com/segmentio/encoding/json"
"fmt"
"math/rand"
"net/http"
Expand Down
2 changes: 1 addition & 1 deletion solrutil/live.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package solrutil

import (
"encoding/json"
"github.com/segmentio/encoding/json"
"fmt"
"io/ioutil"
"net/http"
Expand Down

0 comments on commit 0b0c7e6

Please sign in to comment.