gitee.com/mirrors/goreporter@v0.0.0-20180902115603-df1b20f7c5d0/linters/staticcheck/testdata/CheckStringsReplaceZero.go6 (about) 1 package pkg 2 3 import "strings" 4 5 func fn() { 6 strings.Replace("", "", "", 0) // MATCH /calling strings.Replace with n == 0/ 7 strings.Replace("", "", "", -1) 8 strings.Replace("", "", "", 1) 9 }