github.com/c9s/go@v0.0.0-20180120015821-984e81f64e0c/test/linkname.dir/linkname3.go (about) 1 package main 2 3 import _ "./linkname1" 4 import "./linkname2" 5 6 func main() { // ERROR "can inline main" 7 str := "hello/world" 8 bs := []byte(str) // ERROR "\(\[\]byte\)\(str\) escapes to heap" 9 if y.ContainsSlash(bs) { // ERROR "inlining call to y.ContainsSlash" 10 } 11 }