go交叉编译linux

go交叉编译linux

会出现如下错误

..\github.com\mattn\go-isatty\isatty_linux.go:7:8: cannot find package "golang.org/x/sys/unix" in any of:

 

解决办法:

git clone https://github.com/golang/sys.git

下载到gopath目录下的golang.org\x\sys 即可

posted @ 2022-08-01 16:12  delphi中间件  阅读(145)  评论(0编辑  收藏  举报