From 54e9ee37a7a301dbe74d46fd3c87712e6120e9bf Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Thu, 20 Jan 2022 18:46:10 +0100 Subject: format with gofumpt (#18184) * gofumpt -w -l . * gofumpt -w -l -extra . * Add linter * manual fix * change make fmt --- modules/web/routing/funcinfo.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'modules/web/routing/funcinfo.go') diff --git a/modules/web/routing/funcinfo.go b/modules/web/routing/funcinfo.go index 6d3986e364..9bb38af1c8 100644 --- a/modules/web/routing/funcinfo.go +++ b/modules/web/routing/funcinfo.go @@ -12,9 +12,11 @@ import ( "sync" ) -var funcInfoMap = map[uintptr]*FuncInfo{} -var funcInfoNameMap = map[string]*FuncInfo{} -var funcInfoMapMu sync.RWMutex +var ( + funcInfoMap = map[uintptr]*FuncInfo{} + funcInfoNameMap = map[string]*FuncInfo{} + funcInfoMapMu sync.RWMutex +) // FuncInfo contains information about the function to be logged by the router log type FuncInfo struct { -- cgit v1.2.3