Go: build constraints exclude all Go files in ...

适用场景:

      项目采用CGO编程

解决方案:

      设置环境变量中的CGO_ENABLED

      支持CGO时,export CGO_ENABLED=1

      反之则设置,export CGO_ENABLED=0

你可能感兴趣的:(Go: build constraints exclude all Go files in ...)