You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
305 B
14 lines
305 B
4 months ago
|
package y
|
||
|
|
||
|
import _ "unsafe"
|
||
|
|
||
|
//go:linkname byteIndex linkname1.indexByte
|
||
|
func byteIndex(xs []byte, b byte) int // ERROR "leaking param: xs"
|
||
|
|
||
|
func ContainsSlash(data []byte) bool { // ERROR "leaking param: data" "can inline ContainsSlash"
|
||
|
if byteIndex(data, '/') != -1 {
|
||
|
return true
|
||
|
}
|
||
|
return false
|
||
|
}
|