/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/linkname.dir/linkname2.go
13 строк
310 B
Matthew Dempsky
test: compile source files as if from "test" module
24 мар 2022, 20:50
24 мар 2022, 20:50
b95d332
Код
Авторство
О чём код?
package y import _ "unsafe" //go:linkname byteIndex test/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 }