1
0
mirror of https://github.com/golang/go synced 2024-11-17 23:04:56 -07:00

go/build: document GOOS.go also has implicit GOOS build constraint

R=golang-dev, i.caught.air, alexb, r
CC=golang-dev
https://golang.org/cl/9064044
This commit is contained in:
Shenghou Ma 2013-05-05 02:23:19 +08:00
parent 4ff48c7f45
commit a21b36da1c

View File

@ -97,9 +97,16 @@
// - any additional words listed in ctxt.BuildTags // - any additional words listed in ctxt.BuildTags
// //
// If a file's name, after stripping the extension and a possible _test suffix, // If a file's name, after stripping the extension and a possible _test suffix,
// matches *_GOOS, *_GOARCH, or *_GOOS_GOARCH for any known operating // matches any of the following patterns:
// system and architecture values, then the file is considered to have an implicit // *_GOOS
// build constraint requiring those terms. // *_GOARCH
// *_GOOS_GOARCH
// (example: source_windows_amd64.go) or the literals:
// GOOS
// GOARCH
// (example: windows.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.
// //
// To keep a file from being considered for the build: // To keep a file from being considered for the build:
// //