Golang conditional compilation

后端 未结 4 479
南方客
南方客 2020-12-23 13:04

I\'ve got a trouble with conditional compilation in Go 1.

Here is my test code. Is there anything I misunderstand about the \"// +build\" constraint and the \"-tags\

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-23 13:07

    http://golang.org/pkg/go/build/ Build Constraints “To distinguish build constraints from package documentation, a series of build constraints must be followed by a blank line.”

提交回复
热议问题