Skip to content
This repository was archived by the owner on Jul 11, 2024. It is now read-only.

Commit 20f0975

Browse files
committed
chore: cleanup + fmt
1 parent 87771d1 commit 20f0975

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

cache_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ package disgord
33
import (
44
"errors"
55
"fmt"
6-
"github.com/andersfylling/disgord/json"
76
"strings"
87
"testing"
98
"time"
9+
10+
"github.com/andersfylling/disgord/json"
1011
)
1112

1213
func jsonbytes(format string, args ...interface{}) []byte {

disgord.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,16 @@ import (
126126
"bytes"
127127
"errors"
128128
"fmt"
129-
"github.com/andersfylling/disgord/internal/gateway"
130-
"github.com/andersfylling/disgord/json"
131129
"os"
132130
"os/signal"
133131
"strconv"
134132
"strings"
135133
"syscall"
136134
"time"
137135

136+
"github.com/andersfylling/disgord/internal/gateway"
137+
"github.com/andersfylling/disgord/json"
138+
138139
"github.com/andersfylling/disgord/internal/util"
139140

140141
"github.com/andersfylling/disgord/internal/constant"

disgord_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ package disgord
55

66
import (
77
"context"
8-
"github.com/andersfylling/disgord/json"
98
"net/http"
109
"strconv"
1110
"testing"
1211
"time"
1312

13+
"github.com/andersfylling/disgord/json"
14+
1415
"github.com/andersfylling/disgord/internal/gateway"
1516
)
1617

rest.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,6 @@ type fRESTRequestMiddleware func(resp *http.Response, body []byte, err error) er
172172
type fRESTCacheMiddleware func(resp *http.Response, v interface{}, err error) error
173173
type fRESTItemFactory func() interface{}
174174

175-
//go:generate go run internal/generate/restbuilders/main.go
176-
177175
type RESTBuilder struct {
178176
middleware fRESTRequestMiddleware
179177
config *httd.Request

0 commit comments

Comments
 (0)