X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=.config%2Fcoc%2Fextensions%2Fcoc-go-data%2Ftools%2Fpkg%2Fmod%2Fhonnef.co%2Fgo%2Ftools%40v0.0.1-2020.1.5%2Fstaticcheck%2Ftestdata%2Fsrc%2FCheckUnsafePrintf%2FCheckUnsafePrintf.go;fp=.config%2Fcoc%2Fextensions%2Fcoc-go-data%2Ftools%2Fpkg%2Fmod%2Fhonnef.co%2Fgo%2Ftools%40v0.0.1-2020.1.5%2Fstaticcheck%2Ftestdata%2Fsrc%2FCheckUnsafePrintf%2FCheckUnsafePrintf.go;h=0000000000000000000000000000000000000000;hb=3ddadb3c98564791f0ac36cb39771d844a63dc91;hp=33a336de615ed2b32f678ff29f3463fe62edd510;hpb=5f797af6612ed10887189b47a1efc2f915586e59;p=dotfiles%2F.git diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/staticcheck/testdata/src/CheckUnsafePrintf/CheckUnsafePrintf.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/staticcheck/testdata/src/CheckUnsafePrintf/CheckUnsafePrintf.go deleted file mode 100644 index 33a336de..00000000 --- a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/staticcheck/testdata/src/CheckUnsafePrintf/CheckUnsafePrintf.go +++ /dev/null @@ -1,22 +0,0 @@ -package pkg - -import ( - "fmt" - "log" - "os" -) - -func fn(s string) { - fn2 := func() string { return "" } - fmt.Printf(fn2()) // want `should use print-style function` - _ = fmt.Sprintf(fn2()) // want `should use print-style function` - log.Printf(fn2()) // want `should use print-style function` - fmt.Printf(s) // want `should use print-style function` - fmt.Printf(s, "") - fmt.Fprintf(os.Stdout, s) // want `should use print-style function` - fmt.Fprintf(os.Stdout, s, "") - - fmt.Printf(fn2(), "") - fmt.Printf("") - fmt.Printf("%s", "") -}