honnef.co/go/tools@v0.5.0-0.dev.0.20240520180541-dcae280a5e87/simple/s1025/testdata/src/example.com/CheckRedundantSprintf_go118/LintRedundantSprintf.go (about) 1 package pkg 2 3 import "fmt" 4 5 type MyByte byte 6 type T1 []MyByte 7 8 func fn() { 9 var t1 T1 10 _ = fmt.Sprintf("%s", t1) //@ diag(`underlying type is a slice of bytes`) 11 }