honnef.co/go/tools@v0.5.0-0.dev.0.20240520180541-dcae280a5e87/simple/s1039/testdata/src/example.com/CheckSprintLiteral/CheckSprintLiteral.go.golden (about) 1 package pkg 2 3 import "fmt" 4 5 func fn() { 6 _ = "foo" //@ diag(`unnecessary use of fmt.Sprint`) 7 _ = "foo" //@ diag(`unnecessary use of fmt.Sprintf`) 8 _ = fmt.Sprintf("foo %d") 9 _ = fmt.Sprintf("foo %d", 1) 10 11 var x string 12 _ = fmt.Sprint(x) 13 }