mirror of
https://gitee.com/johng/gf
synced 2026-07-06 21:45:34 +08:00
add golangci feature to guarantee codes quality (#2229)
This commit is contained in:
@ -30,7 +30,7 @@ var (
|
||||
|
||||
func init() {
|
||||
if goRootForFilter != "" {
|
||||
goRootForFilter = strings.Replace(goRootForFilter, "\\", "/", -1)
|
||||
goRootForFilter = strings.ReplaceAll(goRootForFilter, "\\", "/")
|
||||
}
|
||||
// Initialize internal package variable: selfPath.
|
||||
selfPath, _ = exec.LookPath(os.Args[0])
|
||||
|
||||
@ -44,7 +44,7 @@ func StackWithFilters(filters []string, skip ...int) string {
|
||||
number = skip[0]
|
||||
}
|
||||
var (
|
||||
name = ""
|
||||
name string
|
||||
space = " "
|
||||
index = 1
|
||||
buffer = bytes.NewBuffer(nil)
|
||||
|
||||
Reference in New Issue
Block a user