From 31b176d524ea135c63f2cedab7534cb30229ac95 Mon Sep 17 00:00:00 2001 From: "zhujian.zj" Date: Thu, 4 Nov 2021 20:51:01 +0800 Subject: [PATCH] fix: format code --- go.mod | 2 +- go.sum | 1 - src/common/config/config.go | 4 ---- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 00fe22cb0..e74ac681e 100644 --- a/go.mod +++ b/go.mod @@ -15,7 +15,7 @@ require ( github.com/garyburd/redigo v1.6.2 github.com/gin-gonic/gin v1.7.0 github.com/go-playground/validator/v10 v10.4.1 - github.com/golang-jwt/jwt/v4 v4.1.0 // indirect + github.com/golang-jwt/jwt/v4 v4.1.0 github.com/golang/protobuf v1.5.2 github.com/golang/snappy v0.0.3 // indirect github.com/gorilla/websocket v1.4.2 diff --git a/go.sum b/go.sum index 664a73e93..e7785d1b5 100644 --- a/go.sum +++ b/go.sum @@ -233,7 +233,6 @@ github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+ github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= diff --git a/src/common/config/config.go b/src/common/config/config.go index 5d7084653..1fe1d3624 100644 --- a/src/common/config/config.go +++ b/src/common/config/config.go @@ -5,13 +5,9 @@ import ( "os" - "path/filepath" - "runtime" - "gopkg.in/yaml.v3" ) - var Config config type config struct {