Skip to content

Commit 9111f92

Browse files
authored
chore(style): reformat imports (#272)
1 parent 7c2f1dc commit 9111f92

File tree

150 files changed

+351
-201
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+351
-201
lines changed

admin/admin.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ package admin
33
import (
44
"context"
55
"fmt"
6-
"github.com/webhookx-io/webhookx/config"
7-
"go.uber.org/zap"
86
"net/http"
97
"os"
108
"time"
9+
10+
"github.com/webhookx-io/webhookx/config"
11+
"go.uber.org/zap"
1112
)
1213

1314
// Admin is an HTTP Server

admin/api/api.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ package api
22

33
import (
44
"encoding/json"
5+
"net/http"
6+
"net/http/pprof"
7+
"strconv"
8+
59
"github.com/gorilla/mux"
610
"github.com/webhookx-io/webhookx/config"
711
"github.com/webhookx-io/webhookx/db"
@@ -16,9 +20,6 @@ import (
1620
"github.com/webhookx-io/webhookx/pkg/openapi"
1721
"github.com/webhookx-io/webhookx/pkg/types"
1822
"github.com/webhookx-io/webhookx/utils"
19-
"net/http"
20-
"net/http/pprof"
21-
"strconv"
2223
)
2324

2425
type API struct {

admin/api/attempts.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package api
22

33
import (
4-
"github.com/webhookx-io/webhookx/pkg/types"
54
"net/http"
65

6+
"github.com/webhookx-io/webhookx/pkg/types"
7+
78
"github.com/webhookx-io/webhookx/db/query"
89
"github.com/webhookx-io/webhookx/utils"
910
)

admin/api/declarative.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ import (
44
"bytes"
55
"encoding/json"
66
"errors"
7+
"io"
8+
"net/http"
9+
"strings"
10+
711
"github.com/webhookx-io/webhookx/pkg/declarative"
812
"github.com/webhookx-io/webhookx/pkg/http/response"
913
"github.com/webhookx-io/webhookx/pkg/ucontext"
1014
"gopkg.in/yaml.v3"
11-
"io"
12-
"net/http"
13-
"strings"
1415
)
1516

1617
func toJSON(yamlstr []byte) ([]byte, error) {

admin/api/endpoints.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
package api
22

33
import (
4+
"net/http"
5+
46
"github.com/webhookx-io/webhookx/db/entities"
57
"github.com/webhookx-io/webhookx/db/query"
68
"github.com/webhookx-io/webhookx/pkg/types"
79
"github.com/webhookx-io/webhookx/pkg/ucontext"
810
"github.com/webhookx-io/webhookx/utils"
9-
"net/http"
1011
)
1112

1213
func (api *API) PageEndpoint(w http.ResponseWriter, r *http.Request) {

admin/api/events.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@ package api
22

33
import (
44
"context"
5+
"net/http"
6+
"time"
7+
58
"github.com/webhookx-io/webhookx/db/entities"
69
"github.com/webhookx-io/webhookx/db/query"
710
"github.com/webhookx-io/webhookx/eventbus"
811
"github.com/webhookx-io/webhookx/pkg/types"
912
"github.com/webhookx-io/webhookx/pkg/ucontext"
1013
"github.com/webhookx-io/webhookx/utils"
11-
"net/http"
12-
"time"
1314
)
1415

1516
func (api *API) PageEvent(w http.ResponseWriter, r *http.Request) {

admin/api/index.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package api
22

33
import (
4-
"github.com/webhookx-io/webhookx/config"
54
"net/http"
5+
6+
"github.com/webhookx-io/webhookx/config"
67
)
78

89
type IndexResponse struct {

admin/api/middleware.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ package api
22

33
import (
44
"errors"
5+
"net/http"
6+
57
"github.com/gorilla/mux"
68
"github.com/webhookx-io/webhookx/db/entities"
79
"github.com/webhookx-io/webhookx/pkg/ucontext"
8-
"net/http"
910
)
1011

1112
func (api *API) contextMiddleware(next http.Handler) http.Handler {

admin/api/plugins.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
package api
22

33
import (
4+
"net/http"
5+
46
"github.com/webhookx-io/webhookx/db/entities"
57
"github.com/webhookx-io/webhookx/db/query"
68
"github.com/webhookx-io/webhookx/pkg/types"
79
"github.com/webhookx-io/webhookx/utils"
8-
"net/http"
910
)
1011

1112
func (api *API) PagePlugin(w http.ResponseWriter, r *http.Request) {

admin/api/sources.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
package api
22

33
import (
4+
"net/http"
5+
46
"github.com/webhookx-io/webhookx/db/entities"
57
"github.com/webhookx-io/webhookx/db/query"
68
"github.com/webhookx-io/webhookx/pkg/types"
79
"github.com/webhookx-io/webhookx/pkg/ucontext"
810
"github.com/webhookx-io/webhookx/utils"
9-
"net/http"
1011
)
1112

1213
func (api *API) PageSource(w http.ResponseWriter, r *http.Request) {

0 commit comments

Comments
 (0)