summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-03-20 18:15:41 +0300
committerValery Piashchynski <[email protected]>2020-03-20 18:15:41 +0300
commit96e6686c5fa55e5b055fe3d7a4635e272e69c3ac (patch)
treeeb8b7f243db993351bb7867de4f0a732b03a7a98
parentca497b21bcc33361867d16e1709c55f0313128a7 (diff)
Replace std json package with github.com/json-iterator/go
-rw-r--r--go.mod1
-rw-r--r--go.sum3
-rw-r--r--protocol.go2
-rw-r--r--service/container_test.go2
-rw-r--r--service/env/config_test.go2
-rw-r--r--service/gzip/config_test.go2
-rw-r--r--service/gzip/service_test.go2
-rw-r--r--service/headers/config_test.go2
-rw-r--r--service/headers/service_test.go2
-rw-r--r--service/health/config_test.go2
-rw-r--r--service/health/service_test.go2
-rw-r--r--service/http/config_test.go2
-rw-r--r--service/http/request.go2
-rw-r--r--service/http/response.go2
-rw-r--r--service/http/rpc_test.go2
-rw-r--r--service/http/service_test.go2
-rw-r--r--service/http/uploads.go2
-rw-r--r--service/http/uploads_test.go2
-rw-r--r--service/limit/config_test.go2
-rw-r--r--service/limit/service_test.go2
-rw-r--r--service/metrics/config_test.go2
-rw-r--r--service/metrics/service_test.go2
-rw-r--r--service/rpc/config_test.go2
-rw-r--r--service/static/config_test.go2
-rw-r--r--service/static/service_test.go2
25 files changed, 27 insertions, 23 deletions
diff --git a/go.mod b/go.mod
index 988a9856..05f2655f 100644
--- a/go.mod
+++ b/go.mod
@@ -8,6 +8,7 @@ require (
github.com/buger/goterm v0.0.0-20181115115552-c206103e1f37
github.com/dustin/go-humanize v1.0.0
github.com/go-ole/go-ole v1.2.4 // indirect
+ github.com/json-iterator/go v1.1.9
github.com/mattn/go-colorable v0.1.6 // indirect
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b
github.com/olekukonko/tablewriter v0.0.4
diff --git a/go.sum b/go.sum
index 183fa45e..3226302a 100644
--- a/go.sum
+++ b/go.sum
@@ -94,6 +94,7 @@ github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af h1:pmfjZENx5i
github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=
github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo=
github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
+github.com/json-iterator/go v1.1.9 h1:9yzud/Ht36ygwatGx56VwCZtlI/2AD15T1X2sjSuGns=
github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
github.com/jtolds/gls v4.2.1+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo=
@@ -136,8 +137,10 @@ github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrk
github.com/mitchellh/mapstructure v1.1.2 h1:fmNYVwqnSfB9mZU6OS2O6GsXM+wcskZDuKQzvN1EDeE=
github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
+github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg=
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
+github.com/modern-go/reflect2 v1.0.1 h1:9f412s+6RmYXLWZSEzVVgPGK7C2PphHj5RJrvfx9AWI=
github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U=
diff --git a/protocol.go b/protocol.go
index 42649264..6d2b4c9f 100644
--- a/protocol.go
+++ b/protocol.go
@@ -1,8 +1,8 @@
package roadrunner
import (
- "encoding/json"
"fmt"
+ json "github.com/json-iterator/go"
"github.com/spiral/goridge"
"os"
)
diff --git a/service/container_test.go b/service/container_test.go
index d7ca73a7..1874b355 100644
--- a/service/container_test.go
+++ b/service/container_test.go
@@ -1,8 +1,8 @@
package service
import (
- "encoding/json"
"errors"
+ json "github.com/json-iterator/go"
"github.com/sirupsen/logrus"
"github.com/sirupsen/logrus/hooks/test"
"github.com/stretchr/testify/assert"
diff --git a/service/env/config_test.go b/service/env/config_test.go
index 226712c3..2fc12303 100644
--- a/service/env/config_test.go
+++ b/service/env/config_test.go
@@ -1,7 +1,7 @@
package env
import (
- "encoding/json"
+ json "github.com/json-iterator/go"
"github.com/spiral/roadrunner/service"
"github.com/stretchr/testify/assert"
"testing"
diff --git a/service/gzip/config_test.go b/service/gzip/config_test.go
index 92bb1cb5..1913af64 100644
--- a/service/gzip/config_test.go
+++ b/service/gzip/config_test.go
@@ -1,7 +1,7 @@
package gzip
import (
- "encoding/json"
+ json "github.com/json-iterator/go"
"github.com/spiral/roadrunner/service"
"github.com/stretchr/testify/assert"
"testing"
diff --git a/service/gzip/service_test.go b/service/gzip/service_test.go
index 9a62a08b..81c2aed3 100644
--- a/service/gzip/service_test.go
+++ b/service/gzip/service_test.go
@@ -1,7 +1,7 @@
package gzip
import (
- "encoding/json"
+ json "github.com/json-iterator/go"
"github.com/sirupsen/logrus"
"github.com/sirupsen/logrus/hooks/test"
"github.com/spiral/roadrunner/service"
diff --git a/service/headers/config_test.go b/service/headers/config_test.go
index e6b9b8ff..994add54 100644
--- a/service/headers/config_test.go
+++ b/service/headers/config_test.go
@@ -1,7 +1,7 @@
package headers
import (
- "encoding/json"
+ json "github.com/json-iterator/go"
"github.com/spiral/roadrunner/service"
"github.com/stretchr/testify/assert"
"testing"
diff --git a/service/headers/service_test.go b/service/headers/service_test.go
index 120bb3d6..e4bbfb84 100644
--- a/service/headers/service_test.go
+++ b/service/headers/service_test.go
@@ -1,7 +1,7 @@
package headers
import (
- "encoding/json"
+ json "github.com/json-iterator/go"
"github.com/sirupsen/logrus"
"github.com/sirupsen/logrus/hooks/test"
"github.com/spiral/roadrunner/service"
diff --git a/service/health/config_test.go b/service/health/config_test.go
index 9068f2ca..0b4af817 100644
--- a/service/health/config_test.go
+++ b/service/health/config_test.go
@@ -1,7 +1,7 @@
package health
import (
- "encoding/json"
+ json "github.com/json-iterator/go"
"testing"
"github.com/spiral/roadrunner/service"
diff --git a/service/health/service_test.go b/service/health/service_test.go
index e8685548..f5426434 100644
--- a/service/health/service_test.go
+++ b/service/health/service_test.go
@@ -1,7 +1,7 @@
package health
import (
- "encoding/json"
+ json "github.com/json-iterator/go"
"io/ioutil"
"net/http"
"testing"
diff --git a/service/http/config_test.go b/service/http/config_test.go
index d8b92247..79c81d2d 100644
--- a/service/http/config_test.go
+++ b/service/http/config_test.go
@@ -1,7 +1,7 @@
package http
import (
- "encoding/json"
+ json "github.com/json-iterator/go"
"github.com/spiral/roadrunner"
"github.com/spiral/roadrunner/service"
"github.com/stretchr/testify/assert"
diff --git a/service/http/request.go b/service/http/request.go
index 630e26f6..d8bd4d30 100644
--- a/service/http/request.go
+++ b/service/http/request.go
@@ -1,8 +1,8 @@
package http
import (
- "encoding/json"
"fmt"
+ json "github.com/json-iterator/go"
"github.com/sirupsen/logrus"
"github.com/spiral/roadrunner"
"github.com/spiral/roadrunner/service/http/attributes"
diff --git a/service/http/response.go b/service/http/response.go
index 16434a7c..38ac4417 100644
--- a/service/http/response.go
+++ b/service/http/response.go
@@ -1,7 +1,7 @@
package http
import (
- "encoding/json"
+ json "github.com/json-iterator/go"
"io"
"net/http"
"strings"
diff --git a/service/http/rpc_test.go b/service/http/rpc_test.go
index c73f2a91..2874e8b0 100644
--- a/service/http/rpc_test.go
+++ b/service/http/rpc_test.go
@@ -1,7 +1,7 @@
package http
import (
- "encoding/json"
+ json "github.com/json-iterator/go"
"github.com/sirupsen/logrus"
"github.com/sirupsen/logrus/hooks/test"
"github.com/spiral/roadrunner/service"
diff --git a/service/http/service_test.go b/service/http/service_test.go
index 1d8af9c0..44aba576 100644
--- a/service/http/service_test.go
+++ b/service/http/service_test.go
@@ -1,7 +1,7 @@
package http
import (
- "encoding/json"
+ json "github.com/json-iterator/go"
"github.com/sirupsen/logrus"
"github.com/sirupsen/logrus/hooks/test"
"github.com/spiral/roadrunner"
diff --git a/service/http/uploads.go b/service/http/uploads.go
index 8a46f230..15522503 100644
--- a/service/http/uploads.go
+++ b/service/http/uploads.go
@@ -1,8 +1,8 @@
package http
import (
- "encoding/json"
"fmt"
+ json "github.com/json-iterator/go"
"github.com/sirupsen/logrus"
"io"
"io/ioutil"
diff --git a/service/http/uploads_test.go b/service/http/uploads_test.go
index 1890c02b..f336951e 100644
--- a/service/http/uploads_test.go
+++ b/service/http/uploads_test.go
@@ -5,8 +5,8 @@ import (
"context"
"crypto/md5"
"encoding/hex"
- "encoding/json"
"fmt"
+ json "github.com/json-iterator/go"
"github.com/spiral/roadrunner"
"github.com/stretchr/testify/assert"
"io"
diff --git a/service/limit/config_test.go b/service/limit/config_test.go
index b388791f..72c4bde8 100644
--- a/service/limit/config_test.go
+++ b/service/limit/config_test.go
@@ -1,7 +1,7 @@
package limit
import (
- "encoding/json"
+ json "github.com/json-iterator/go"
"github.com/spiral/roadrunner/service"
"github.com/stretchr/testify/assert"
"testing"
diff --git a/service/limit/service_test.go b/service/limit/service_test.go
index abc03e69..eab80af9 100644
--- a/service/limit/service_test.go
+++ b/service/limit/service_test.go
@@ -1,8 +1,8 @@
package limit
import (
- "encoding/json"
"fmt"
+ json "github.com/json-iterator/go"
"github.com/sirupsen/logrus"
"github.com/sirupsen/logrus/hooks/test"
"github.com/spiral/roadrunner/service"
diff --git a/service/metrics/config_test.go b/service/metrics/config_test.go
index ad60102b..4b223905 100644
--- a/service/metrics/config_test.go
+++ b/service/metrics/config_test.go
@@ -1,7 +1,7 @@
package metrics
import (
- "encoding/json"
+ json "github.com/json-iterator/go"
"github.com/prometheus/client_golang/prometheus"
"github.com/spiral/roadrunner/service"
"github.com/stretchr/testify/assert"
diff --git a/service/metrics/service_test.go b/service/metrics/service_test.go
index 62e6f6d7..96289163 100644
--- a/service/metrics/service_test.go
+++ b/service/metrics/service_test.go
@@ -1,7 +1,7 @@
package metrics
import (
- "encoding/json"
+ json "github.com/json-iterator/go"
"github.com/prometheus/client_golang/prometheus"
"github.com/sirupsen/logrus"
"github.com/sirupsen/logrus/hooks/test"
diff --git a/service/rpc/config_test.go b/service/rpc/config_test.go
index 623347ed..d0f26ec6 100644
--- a/service/rpc/config_test.go
+++ b/service/rpc/config_test.go
@@ -1,7 +1,7 @@
package rpc
import (
- "encoding/json"
+ json "github.com/json-iterator/go"
"github.com/spiral/roadrunner/service"
"github.com/stretchr/testify/assert"
"runtime"
diff --git a/service/static/config_test.go b/service/static/config_test.go
index 0221e116..710f9c42 100644
--- a/service/static/config_test.go
+++ b/service/static/config_test.go
@@ -1,7 +1,7 @@
package static
import (
- "encoding/json"
+ json "github.com/json-iterator/go"
"github.com/spiral/roadrunner/service"
"github.com/stretchr/testify/assert"
"testing"
diff --git a/service/static/service_test.go b/service/static/service_test.go
index bd929214..b9e44247 100644
--- a/service/static/service_test.go
+++ b/service/static/service_test.go
@@ -2,7 +2,7 @@ package static
import (
"bytes"
- "encoding/json"
+ json "github.com/json-iterator/go"
"github.com/sirupsen/logrus"
"github.com/sirupsen/logrus/hooks/test"
"github.com/spiral/roadrunner/service"