Source file test/linkname.dir/linkname1.go

     1  package x
     2  
     3  func indexByte(xs []byte, b byte) int { // ERROR "xs does not escape" "can inline indexByte"
     4  	for i, x := range xs {
     5  		if x == b {
     6  			return i
     7  		}
     8  	}
     9  	return -1
    10  }
    11  

View as plain text