问题描述:
解决办法:
File -> Preferences -> Go -> Build Tags & Vendoring
Custom tags增加unix
点击Apply, OK之后,问题消失
原因:
Go 1.19 引入了unix构建标签。因此,需要您添加unix到自定义标签。windows系统添加windows标签即可。
File -> Preferences -> Go -> Build Tags & Vendoring
Custom tags增加unix
点击Apply, OK之后,问题消失
Go 1.19 引入了unix构建标签。因此,需要您添加unix到自定义标签。windows系统添加windows标签即可。