diff options
author | Valery Piashchynski <[email protected]> | 2020-03-20 18:15:41 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-03-20 18:15:41 +0300 |
commit | 96e6686c5fa55e5b055fe3d7a4635e272e69c3ac (patch) | |
tree | eb8b7f243db993351bb7867de4f0a732b03a7a98 /service | |
parent | ca497b21bcc33361867d16e1709c55f0313128a7 (diff) |
Replace std json package with github.com/json-iterator/go
Diffstat (limited to 'service')
-rw-r--r-- | service/container_test.go | 2 | ||||
-rw-r--r-- | service/env/config_test.go | 2 | ||||
-rw-r--r-- | service/gzip/config_test.go | 2 | ||||
-rw-r--r-- | service/gzip/service_test.go | 2 | ||||
-rw-r--r-- | service/headers/config_test.go | 2 | ||||
-rw-r--r-- | service/headers/service_test.go | 2 | ||||
-rw-r--r-- | service/health/config_test.go | 2 | ||||
-rw-r--r-- | service/health/service_test.go | 2 | ||||
-rw-r--r-- | service/http/config_test.go | 2 | ||||
-rw-r--r-- | service/http/request.go | 2 | ||||
-rw-r--r-- | service/http/response.go | 2 | ||||
-rw-r--r-- | service/http/rpc_test.go | 2 | ||||
-rw-r--r-- | service/http/service_test.go | 2 | ||||
-rw-r--r-- | service/http/uploads.go | 2 | ||||
-rw-r--r-- | service/http/uploads_test.go | 2 | ||||
-rw-r--r-- | service/limit/config_test.go | 2 | ||||
-rw-r--r-- | service/limit/service_test.go | 2 | ||||
-rw-r--r-- | service/metrics/config_test.go | 2 | ||||
-rw-r--r-- | service/metrics/service_test.go | 2 | ||||
-rw-r--r-- | service/rpc/config_test.go | 2 | ||||
-rw-r--r-- | service/static/config_test.go | 2 | ||||
-rw-r--r-- | service/static/service_test.go | 2 |
22 files changed, 22 insertions, 22 deletions
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" |