ci(gci/import): improve golangci.yml and add gci linter (#4010)

This commit is contained in:
houseme
2024-12-07 14:17:33 +08:00
committed by GitHub
parent 2066aa4803
commit b0b84a3937
182 changed files with 436 additions and 314 deletions

View File

@ -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.