error: goland --build constraints exclude all Go files
生活随笔
收集整理的這篇文章主要介紹了
error: goland --build constraints exclude all Go files
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
首先,//+build將逐漸取代//go:build,在Go Version1.16-1.18作為過渡期,兩種注釋都可以使用。參見官網https://www.jetbrains.com/help/go/configuring-build-constraints-and-vendoring.html
但是在1.16以下的版本不能使用//+build,若使用便會報錯error: goland --build constraints exclude all Go files。
1.16以下版本應使用//go:build
并且進行如下設置
?
?
總結
以上是生活随笔為你收集整理的error: goland --build constraints exclude all Go files的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Golang 为什么不能直接将任意类型数
- 下一篇: 从程序员角度分析,到底“12306”的架