[英]Golang syscall Iovec undefined
In old version of golang,That works well在旧版本的golang中,效果很好
vec := syscall.Iovec{
Base: &v[0],
}
but when I using golang 1.18.3,I got an error:但是当我使用 golang 1.18.3 时,出现错误:
undefined: syscall.Iovec
I have read the source of syscall package but Iovec still defined at syscall/types_linux.go我已经阅读了系统调用 package 的来源,但 Iovec 仍然定义在 syscall/types_linux.go
I'm confused about what caused it我很困惑是什么原因造成的
What did I do wrong, or is it no longer applicable to the new version of golang?我做错了什么,还是对新版本的golang不再适用?
Give me a hand,plz.帮我一把,请。
It was just a simple error.I was stupid enough to forget setting 'GOOS'这只是一个简单的错误。我愚蠢到忘记设置“GOOS”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.