Skip to content

Commit 50e1380

Browse files
committed
move go standard packages to top of imports
1 parent 1cb6d59 commit 50e1380

File tree

8 files changed

+28
-20
lines changed

8 files changed

+28
-20
lines changed

internal/app/controller/github_listener.go

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

77
import (
88
"fmt"
9+
"net/http"
10+
"strings"
11+
912
"github.com/clivern/hippo"
1013
"github.com/clivern/rabbit/internal/app/model"
1114
"github.com/clivern/rabbit/pkg"
1215
"github.com/gin-gonic/gin"
1316
"github.com/spf13/viper"
1417
"go.uber.org/zap"
15-
"net/http"
16-
"strings"
1718
)
1819

1920
// GithubListener controller

internal/app/controller/health_check.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
package controller
66

77
import (
8+
"net/http"
9+
810
"github.com/clivern/hippo"
911
"github.com/gin-gonic/gin"
1012
"github.com/spf13/viper"
11-
"net/http"
1213
)
1314

1415
// HealthCheck controller

internal/app/controller/home.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ package controller
66

77
import (
88
"fmt"
9-
"github.com/gin-gonic/gin"
10-
"github.com/spf13/viper"
119
"net/http"
1210
"strings"
11+
12+
"github.com/gin-gonic/gin"
13+
"github.com/spf13/viper"
1314
)
1415

1516
// Index controller

internal/app/controller/project.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,18 @@ package controller
66

77
import (
88
"fmt"
9+
"net/http"
10+
"sort"
11+
"strings"
12+
"time"
13+
914
"github.com/clivern/hippo"
1015
"github.com/clivern/rabbit/internal/app/model"
1116
"github.com/clivern/rabbit/internal/app/module"
1217
"github.com/clivern/rabbit/pkg"
1318
"github.com/gin-gonic/gin"
1419
"github.com/spf13/viper"
1520
"go.uber.org/zap"
16-
"net/http"
17-
"sort"
18-
"strings"
19-
"time"
2021
)
2122

2223
// CreateProject controller

internal/app/controller/worker.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ package controller
66

77
import (
88
"fmt"
9+
"time"
10+
911
"github.com/clivern/hippo"
1012
"github.com/clivern/rabbit/internal/app/model"
1113
"github.com/clivern/rabbit/internal/app/module"
1214
"github.com/spf13/viper"
1315
"go.uber.org/zap"
14-
"time"
1516
)
1617

1718
// Worker runs async jobs

internal/app/middleware/correlation.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
package middleware
66

77
import (
8+
"strings"
9+
810
"github.com/clivern/hippo"
911
"github.com/gin-gonic/gin"
10-
"strings"
1112
)
1213

1314
// Correlation middleware

internal/app/middleware/log.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ package middleware
77
import (
88
"bytes"
99
"fmt"
10+
"io/ioutil"
11+
"time"
12+
1013
"github.com/clivern/hippo"
1114
"github.com/gin-gonic/gin"
1215
"github.com/spf13/viper"
1316
"go.uber.org/zap"
14-
"io/ioutil"
15-
"time"
1617
)
1718

1819
// Logger middleware

rabbit.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ import (
88
"bytes"
99
"flag"
1010
"fmt"
11+
"io"
12+
"io/ioutil"
13+
"net/http"
14+
"os"
15+
"path/filepath"
16+
"strconv"
17+
"strings"
18+
1119
"github.com/clivern/hippo"
1220
"github.com/clivern/rabbit/internal/app/cmd"
1321
"github.com/clivern/rabbit/internal/app/controller"
@@ -16,13 +24,6 @@ import (
1624
"github.com/drone/envsubst"
1725
"github.com/gin-gonic/gin"
1826
"github.com/spf13/viper"
19-
"io"
20-
"io/ioutil"
21-
"net/http"
22-
"os"
23-
"path/filepath"
24-
"strconv"
25-
"strings"
2627
)
2728

2829
func main() {

0 commit comments

Comments
 (0)