Skip to content

Commit b042342

Browse files
committed
fix: correct import ordering for gci linter
- Reorder imports to fix gci linting issue - Move external dependencies before internal packages
1 parent 55c285f commit b042342

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

internal/server/server.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ import (
66
"net/http"
77
"time"
88

9+
"github.com/gin-gonic/gin"
10+
"github.com/prometheus/client_golang/prometheus/promhttp"
11+
912
"ghcr-exporter/internal/config"
1013
"ghcr-exporter/internal/metrics"
1114
"ghcr-exporter/internal/version"
12-
"github.com/gin-gonic/gin"
13-
"github.com/prometheus/client_golang/prometheus/promhttp"
1415
)
1516

1617
type Server struct {
@@ -25,7 +26,7 @@ func New(cfg *config.Config, metricsRegistry *metrics.Registry) *Server {
2526
if cfg.Logging.Level != "debug" {
2627
gin.SetMode(gin.ReleaseMode)
2728
}
28-
29+
2930
router := gin.New()
3031
router.Use(gin.Recovery())
3132

0 commit comments

Comments
 (0)