打window包直接go build一下,完事,

但是,打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 即可

相关文章:

  • 2021-12-28
  • 2022-12-23
  • 2022-12-23
  • 2022-01-26
  • 2021-11-22
  • 2022-12-23
  • 2021-05-23
猜你喜欢
  • 2021-09-19
  • 2022-01-12
  • 2021-06-13
  • 2021-06-04
  • 2022-12-23
  • 2021-08-12
  • 2022-12-23
相关资源
相似解决方案