github.com/amarpal/go-tools@v0.0.0-20240422043104-40142f59f616/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 }