Answers for "golang build tag"

Go
0

golang build tag

//+build build_on_this_tag !not_on_this

package somePackage

// ...code...

// Use:
// go build -tags build_on_this_tag
// more info https://golang.org/pkg/go/build/
Posted by: Guest on June-12-2020

Browse Popular Code Answers by Language