build-tag

command module
v0.0.0-...-581be24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 5 Imported by: 0

README

https://golang.org/pkg/go/build/#hdr-Build_Constraints

A build constraint is evaluated as the OR of space-separated options. Each option evaluates as the AND of its comma-separated terms.

// +build linux,386 darwin,!cgo

(linux AND 386) OR (darwin AND (NOT cgo))

*_GOOS
*_GOARCH
*_GOOS_GOARCH

(example: source_windows_amd64.go) where GOOS and GOARCH represent any known operating system and architecture values respectively, then the file is considered to have an implicit build constraint requiring those terms (in addition to any explicit constraints in the file).

Reference

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL