From 750a8465f547e9f08a87612c75898d56b8ec1f88 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Wed, 17 Nov 2021 20:34:35 +0800 Subject: A better go code formatter, and now `make fmt` can run in Windows (#17684) * go build / format tools * re-format imports --- cmd/doctor.go | 3 +-- cmd/mailer.go | 1 + cmd/web.go | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'cmd') diff --git a/cmd/doctor.go b/cmd/doctor.go index 498b859e41..27f91e41bb 100644 --- a/cmd/doctor.go +++ b/cmd/doctor.go @@ -18,9 +18,8 @@ import ( "code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/setting" - "xorm.io/xorm" - "github.com/urfave/cli" + "xorm.io/xorm" ) // CmdDoctor represents the available doctor sub-command. diff --git a/cmd/mailer.go b/cmd/mailer.go index 1a4b0902e2..a3d6baaa27 100644 --- a/cmd/mailer.go +++ b/cmd/mailer.go @@ -10,6 +10,7 @@ import ( "code.gitea.io/gitea/modules/private" "code.gitea.io/gitea/modules/setting" + "github.com/urfave/cli" ) diff --git a/cmd/web.go b/cmd/web.go index 80516058fb..4b6dfa71a2 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -9,10 +9,11 @@ import ( "fmt" "net" "net/http" - _ "net/http/pprof" // Used for debugging if enabled and a web server is running "os" "strings" + _ "net/http/pprof" // Used for debugging if enabled and a web server is running + "code.gitea.io/gitea/modules/graceful" "code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/setting" -- cgit v1.2.3