diff options
Diffstat (limited to 'modules/web/routing/funcinfo.go')
-rw-r--r-- | modules/web/routing/funcinfo.go | 8 |
1 files changed, 5 insertions, 3 deletions
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 { |