Skip to content

Commit

Permalink
run goimports on all files
Browse files Browse the repository at this point in the history
  • Loading branch information
roeest committed Jun 25, 2024
1 parent 47121ce commit 92628d2
Show file tree
Hide file tree
Showing 27 changed files with 49 additions and 22 deletions.
3 changes: 2 additions & 1 deletion _examples/benchmarking/benchmarks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package benchmarking

import (
"fmt"
"testing"

"github.com/99designs/gqlgen/_examples/benchmarking/models"
gqlclient "github.com/99designs/gqlgen/client"
"testing"

"github.com/99designs/gqlgen/_examples/benchmarking/generated"
"github.com/99designs/gqlgen/graphql/handler"
Expand Down
3 changes: 2 additions & 1 deletion _examples/benchmarking/resolvers.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ package benchmarking
import (
"context"
"errors"
"strings"

"github.com/99designs/gqlgen/_examples/benchmarking/generated"
"github.com/99designs/gqlgen/_examples/benchmarking/models"
"strings"
)

type Resolver struct {
Expand Down
3 changes: 2 additions & 1 deletion graphql/coercion_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package graphql

import (
"github.com/goccy/go-json"
"testing"

"github.com/goccy/go-json"

"github.com/stretchr/testify/assert"
)

Expand Down
3 changes: 2 additions & 1 deletion graphql/executable_schema_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion graphql/executor/testexecutor/testexecutor.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ import (
"context"
"errors"
"fmt"
"github.com/goccy/go-json"
"io"
"time"

"github.com/goccy/go-json"

"github.com/vektah/gqlparser/v2"
"github.com/vektah/gqlparser/v2/ast"

Expand Down
3 changes: 2 additions & 1 deletion graphql/float.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import (
"context"
"errors"
"fmt"
"github.com/goccy/go-json"
"io"
"math"
"strconv"

"github.com/goccy/go-json"
)

func MarshalFloat(f float64) Marshaler {
Expand Down
3 changes: 2 additions & 1 deletion graphql/handler/apollofederatedtracingv1/tracing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ package apollofederatedtracingv1_test
import (
"context"
"encoding/base64"
"github.com/goccy/go-json"
"io"
"net/http"
"net/http/httptest"
"strings"
"testing"
"time"

"github.com/goccy/go-json"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/vektah/gqlparser/v2/gqlerror"
Expand Down
3 changes: 2 additions & 1 deletion graphql/handler/apollotracing/tracer_test.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
package apollotracing_test

import (
"github.com/goccy/go-json"
"io"
"net/http"
"net/http/httptest"
"strings"
"testing"
"time"

"github.com/goccy/go-json"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/vektah/gqlparser/v2/ast"
Expand Down
3 changes: 2 additions & 1 deletion graphql/handler/transport/http_form_multipart.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package transport

import (
"github.com/goccy/go-json"
"io"
"mime"
"net/http"
"os"

"github.com/goccy/go-json"

"github.com/99designs/gqlgen/graphql"
)

Expand Down
3 changes: 2 additions & 1 deletion graphql/handler/transport/http_get.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package transport

import (
"github.com/goccy/go-json"
"io"
"net/http"
"net/url"
"strings"

"github.com/goccy/go-json"

"github.com/vektah/gqlparser/v2/ast"
"github.com/vektah/gqlparser/v2/gqlerror"

Expand Down
3 changes: 2 additions & 1 deletion graphql/handler/transport/sse.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ package transport

import (
"fmt"
"github.com/goccy/go-json"
"io"
"log"
"mime"
"net/http"
"strings"

"github.com/goccy/go-json"

"github.com/vektah/gqlparser/v2/gqlerror"

"github.com/99designs/gqlgen/graphql"
Expand Down
3 changes: 2 additions & 1 deletion graphql/handler/transport/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package transport

import (
"fmt"
"github.com/goccy/go-json"
"io"

"github.com/goccy/go-json"

"github.com/vektah/gqlparser/v2/gqlerror"

"github.com/99designs/gqlgen/graphql"
Expand Down
3 changes: 2 additions & 1 deletion graphql/handler/transport/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ import (
"context"
"errors"
"fmt"
"github.com/goccy/go-json"
"log"
"net"
"net/http"
"sync"
"time"

"github.com/goccy/go-json"

"github.com/gorilla/websocket"
"github.com/vektah/gqlparser/v2/gqlerror"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package transport

import (
"fmt"

"github.com/goccy/go-json"

"github.com/gorilla/websocket"
Expand Down
1 change: 1 addition & 0 deletions graphql/handler/transport/websocket_graphqlws.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package transport

import (
"fmt"

"github.com/goccy/go-json"

"github.com/gorilla/websocket"
Expand Down
1 change: 1 addition & 0 deletions graphql/handler/transport/websocket_subprotocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package transport

import (
"errors"

"github.com/goccy/go-json"

"github.com/gorilla/websocket"
Expand Down
3 changes: 2 additions & 1 deletion graphql/handler/transport/websocket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ package transport_test
import (
"context"
"errors"
"github.com/goccy/go-json"
"net/http"
"net/http/httptest"
"strings"
"testing"
"time"

"github.com/goccy/go-json"

"github.com/gorilla/websocket"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
3 changes: 2 additions & 1 deletion graphql/id.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package graphql

import (
"fmt"
"github.com/goccy/go-json"
"io"
"strconv"

"github.com/goccy/go-json"
)

func MarshalID(s string) Marshaler {
Expand Down
3 changes: 2 additions & 1 deletion graphql/int.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package graphql

import (
"fmt"
"github.com/goccy/go-json"
"io"
"strconv"

"github.com/goccy/go-json"
)

func MarshalInt(i int) Marshaler {
Expand Down
3 changes: 2 additions & 1 deletion graphql/int_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package graphql

import (
"github.com/goccy/go-json"
"testing"

"github.com/goccy/go-json"

"github.com/stretchr/testify/assert"
)

Expand Down
3 changes: 2 additions & 1 deletion graphql/map.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package graphql

import (
"fmt"
"github.com/goccy/go-json"
"io"

"github.com/goccy/go-json"
)

func MarshalMap(val map[string]interface{}) Marshaler {
Expand Down
1 change: 1 addition & 0 deletions graphql/omittable.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package graphql

import (
"encoding/json"

fastjson "github.com/goccy/go-json"
)

Expand Down
3 changes: 2 additions & 1 deletion graphql/omittable_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package graphql

import (
"github.com/goccy/go-json"
"testing"

"github.com/goccy/go-json"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
1 change: 1 addition & 0 deletions graphql/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package graphql
import (
"context"
"fmt"

"github.com/goccy/go-json"

"github.com/vektah/gqlparser/v2/ast"
Expand Down
3 changes: 2 additions & 1 deletion graphql/string_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package graphql

import (
"github.com/goccy/go-json"
"testing"

"github.com/goccy/go-json"

"github.com/stretchr/testify/assert"
)

Expand Down
3 changes: 2 additions & 1 deletion graphql/uint.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package graphql
import (
"errors"
"fmt"
"github.com/goccy/go-json"
"io"
"strconv"

"github.com/goccy/go-json"
)

func MarshalUint(i uint) Marshaler {
Expand Down
3 changes: 2 additions & 1 deletion graphql/uint_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package graphql

import (
"github.com/goccy/go-json"
"math"
"testing"

"github.com/goccy/go-json"

"github.com/stretchr/testify/assert"
)

Expand Down

0 comments on commit 92628d2

Please sign in to comment.