写代码的时候出现了错误
查看 Go SDK --> src --> os --> file_posix.go 中的 go build 标签
Go 1.19 引入了unix构建标签。因此,需要您添加unix到自定义标签
我这里只在
Preferences --> Go --> Build Tags & Vendoring --> Custom tags 添加 unix
即可
写代码的时候出现了错误
查看 Go SDK --> src --> os --> file_posix.go 中的 go build 标签
Go 1.19 引入了unix构建标签。因此,需要您添加unix到自定义标签
我这里只在
Preferences --> Go --> Build Tags & Vendoring --> Custom tags 添加 unix
即可