mirror of
https://gitee.com/johng/gf
synced 2026-06-07 02:12:11 +08:00
ci(gci/import): improve golangci.yml and add gci linter (#4010)
This commit is contained in:
@ -12,10 +12,8 @@ import (
|
||||
"strconv"
|
||||
)
|
||||
|
||||
var (
|
||||
// gridRegex is the regular expression object for parsing goroutine id from stack information.
|
||||
gridRegex = regexp.MustCompile(`^\w+\s+(\d+)\s+`)
|
||||
)
|
||||
// gridRegex is the regular expression object for parsing goroutine id from stack information.
|
||||
var gridRegex = regexp.MustCompile(`^\w+\s+(\d+)\s+`)
|
||||
|
||||
// GoroutineId retrieves and returns the current goroutine id from stack information.
|
||||
// Be very aware that, it is with low performance as it uses runtime.Stack function.
|
||||
|
||||
Reference in New Issue
Block a user