:minus_sign: Removed goccy/go-json package

This commit is contained in:
Maxim Lebedev 2024-05-07 00:44:17 +05:00
parent 21a84d9809
commit 8c84dbd6d0
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
13 changed files with 12 additions and 31 deletions

2
go.mod
View File

@ -5,7 +5,6 @@ go 1.21
require ( require (
github.com/DATA-DOG/go-sqlmock v1.5.2 github.com/DATA-DOG/go-sqlmock v1.5.2
github.com/brianvoe/gofakeit/v6 v6.28.0 github.com/brianvoe/gofakeit/v6 v6.28.0
github.com/goccy/go-json v0.10.2
github.com/google/go-cmp v0.6.0 github.com/google/go-cmp v0.6.0
github.com/jmoiron/sqlx v1.4.0 github.com/jmoiron/sqlx v1.4.0
github.com/lestrrat-go/jwx/v2 v2.0.21 github.com/lestrrat-go/jwx/v2 v2.0.21
@ -23,6 +22,7 @@ require (
) )
require ( require (
github.com/goccy/go-json v0.10.2 // indirect
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
github.com/ncruces/go-strftime v0.1.9 // indirect github.com/ncruces/go-strftime v0.1.9 // indirect
modernc.org/gc/v3 v3.0.0-20240304020402-f0dba7c97c2b // indirect modernc.org/gc/v3 v3.0.0-20240304020402-f0dba7c97c2b // indirect

View File

@ -2,11 +2,11 @@ package http
import ( import (
"crypto/subtle" "crypto/subtle"
"encoding/json"
"net/http" "net/http"
"net/url" "net/url"
"strings" "strings"
"github.com/goccy/go-json"
"golang.org/x/text/language" "golang.org/x/text/language"
"golang.org/x/text/message" "golang.org/x/text/message"

View File

@ -1,10 +1,9 @@
package http package http
import ( import (
"encoding/json"
"net/http" "net/http"
"github.com/goccy/go-json"
"source.toby3d.me/toby3d/auth/internal/common" "source.toby3d.me/toby3d/auth/internal/common"
"source.toby3d.me/toby3d/auth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )

View File

@ -1,12 +1,11 @@
package http_test package http_test
import ( import (
"encoding/json"
"net/http" "net/http"
"net/http/httptest" "net/http/httptest"
"testing" "testing"
"github.com/goccy/go-json"
"source.toby3d.me/toby3d/auth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
delivery "source.toby3d.me/toby3d/auth/internal/metadata/delivery/http" delivery "source.toby3d.me/toby3d/auth/internal/metadata/delivery/http"
) )

View File

@ -2,11 +2,11 @@ package http
import ( import (
"context" "context"
"encoding/json"
"fmt" "fmt"
"net/http" "net/http"
"net/url" "net/url"
"github.com/goccy/go-json"
"willnorris.com/go/microformats" "willnorris.com/go/microformats"
"source.toby3d.me/toby3d/auth/internal/common" "source.toby3d.me/toby3d/auth/internal/common"

View File

@ -2,6 +2,7 @@ package http_test
import ( import (
"context" "context"
"encoding/json"
"fmt" "fmt"
"net/http" "net/http"
"net/http/httptest" "net/http/httptest"
@ -9,7 +10,6 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/goccy/go-json"
"github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp"
"source.toby3d.me/toby3d/auth/internal/common" "source.toby3d.me/toby3d/auth/internal/common"

View File

@ -4,11 +4,11 @@ import (
"context" "context"
"database/sql" "database/sql"
"encoding/base64" "encoding/base64"
"encoding/json"
"errors" "errors"
"fmt" "fmt"
"time" "time"
"github.com/goccy/go-json"
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"
"source.toby3d.me/toby3d/auth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"

View File

@ -1,9 +1,9 @@
package http package http
import ( import (
"encoding/json"
"net/http" "net/http"
"github.com/goccy/go-json"
"github.com/lestrrat-go/jwx/v2/jwa" "github.com/lestrrat-go/jwx/v2/jwa"
"source.toby3d.me/toby3d/auth/internal/common" "source.toby3d.me/toby3d/auth/internal/common"

View File

@ -3,14 +3,13 @@ package http_test
import ( import (
"bytes" "bytes"
"context" "context"
"encoding/json"
"io" "io"
"net/http" "net/http"
"net/http/httptest" "net/http/httptest"
"strings" "strings"
"testing" "testing"
"github.com/goccy/go-json"
"source.toby3d.me/toby3d/auth/internal/common" "source.toby3d.me/toby3d/auth/internal/common"
"source.toby3d.me/toby3d/auth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/toby3d/auth/internal/profile" "source.toby3d.me/toby3d/auth/internal/profile"

View File

@ -1,10 +1,10 @@
package http package http
import ( import (
"encoding/json"
"net/http" "net/http"
"strings" "strings"
"github.com/goccy/go-json"
"github.com/lestrrat-go/jwx/v2/jwa" "github.com/lestrrat-go/jwx/v2/jwa"
"source.toby3d.me/toby3d/auth/internal/common" "source.toby3d.me/toby3d/auth/internal/common"

View File

@ -2,11 +2,11 @@ package http_test
import ( import (
"context" "context"
"encoding/json"
"net/http" "net/http"
"net/http/httptest" "net/http/httptest"
"testing" "testing"
"github.com/goccy/go-json"
"github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp"
"source.toby3d.me/toby3d/auth/internal/common" "source.toby3d.me/toby3d/auth/internal/common"

View File

@ -3,12 +3,12 @@ package http
import ( import (
"bytes" "bytes"
"context" "context"
"encoding/json"
"fmt" "fmt"
"io" "io"
"net/http" "net/http"
"net/url" "net/url"
"github.com/goccy/go-json"
"github.com/tomnomnom/linkheader" "github.com/tomnomnom/linkheader"
"golang.org/x/exp/slices" "golang.org/x/exp/slices"
"willnorris.com/go/microformats" "willnorris.com/go/microformats"

16
vendor/modules.txt vendored
View File

@ -44,8 +44,6 @@ github.com/hashicorp/golang-lru/v2/simplelru
## explicit; go 1.10 ## explicit; go 1.10
github.com/jmoiron/sqlx github.com/jmoiron/sqlx
github.com/jmoiron/sqlx/reflectx github.com/jmoiron/sqlx/reflectx
# github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51
## explicit
# github.com/lestrrat-go/blackmagic v1.0.2 # github.com/lestrrat-go/blackmagic v1.0.2
## explicit; go 1.16 ## explicit; go 1.16
github.com/lestrrat-go/blackmagic github.com/lestrrat-go/blackmagic
@ -85,8 +83,6 @@ github.com/lestrrat-go/jwx/v2/x25519
# github.com/lestrrat-go/option v1.0.1 # github.com/lestrrat-go/option v1.0.1
## explicit; go 1.16 ## explicit; go 1.16
github.com/lestrrat-go/option github.com/lestrrat-go/option
# github.com/lib/pq v1.10.9
## explicit; go 1.13
# github.com/mattn/go-isatty v0.0.20 # github.com/mattn/go-isatty v0.0.20
## explicit; go 1.15 ## explicit; go 1.15
github.com/mattn/go-isatty github.com/mattn/go-isatty
@ -136,8 +132,6 @@ golang.org/x/crypto/pbkdf2
## explicit; go 1.20 ## explicit; go 1.20
golang.org/x/exp/constraints golang.org/x/exp/constraints
golang.org/x/exp/slices golang.org/x/exp/slices
# golang.org/x/mod v0.17.0
## explicit; go 1.18
# golang.org/x/net v0.24.0 # golang.org/x/net v0.24.0
## explicit; go 1.18 ## explicit; go 1.18
golang.org/x/net/html golang.org/x/net/html
@ -161,8 +155,6 @@ golang.org/x/text/internal/tag
golang.org/x/text/language golang.org/x/text/language
golang.org/x/text/message golang.org/x/text/message
golang.org/x/text/message/catalog golang.org/x/text/message/catalog
# golang.org/x/tools v0.20.0
## explicit; go 1.19
# golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 # golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028
## explicit; go 1.18 ## explicit; go 1.18
golang.org/x/xerrors golang.org/x/xerrors
@ -170,12 +162,6 @@ golang.org/x/xerrors/internal
# inet.af/netaddr v0.0.0-20230525184311-b8eac61e914a # inet.af/netaddr v0.0.0-20230525184311-b8eac61e914a
## explicit; go 1.12 ## explicit; go 1.12
inet.af/netaddr inet.af/netaddr
# lukechampine.com/uint128 v1.3.0
## explicit; go 1.12
# modernc.org/cc/v3 v3.41.0
## explicit; go 1.17
# modernc.org/ccgo/v3 v3.17.0
## explicit; go 1.20
# modernc.org/gc/v3 v3.0.0-20240304020402-f0dba7c97c2b # modernc.org/gc/v3 v3.0.0-20240304020402-f0dba7c97c2b
## explicit; go 1.20 ## explicit; go 1.20
modernc.org/gc/v3 modernc.org/gc/v3
@ -213,8 +199,6 @@ modernc.org/mathutil
# modernc.org/memory v1.8.0 # modernc.org/memory v1.8.0
## explicit; go 1.18 ## explicit; go 1.18
modernc.org/memory modernc.org/memory
# modernc.org/opt v0.1.3
## explicit; go 1.13
# modernc.org/sqlite v1.29.9 # modernc.org/sqlite v1.29.9
## explicit; go 1.20 ## explicit; go 1.20
modernc.org/sqlite modernc.org/sqlite