diff options
| author | Shenghou Ma <minux.ma@gmail.com> | 2013-05-05 02:23:19 +0800 |
|---|---|---|
| committer | Shenghou Ma <minux.ma@gmail.com> | 2013-05-05 02:23:19 +0800 |
| commit | a21b36da1cd1e00941536ee1b4e33f456a4500dc (patch) | |
| tree | c9586c5f442ee29461ad0cbf52bb56d4d1c488a9 | |
| parent | 4ff48c7f451d8fe115ecda86874622832671fd93 (diff) | |
| download | go-a21b36da1cd1e00941536ee1b4e33f456a4500dc.tar.xz | |
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
| -rw-r--r-- | src/pkg/go/build/doc.go | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/pkg/go/build/doc.go b/src/pkg/go/build/doc.go index 4b66b84bb6..b5fc071d61 100644 --- a/src/pkg/go/build/doc.go +++ b/src/pkg/go/build/doc.go @@ -97,9 +97,16 @@ // - any additional words listed in ctxt.BuildTags // // If a file's name, after stripping the extension and a possible _test suffix, -// matches *_GOOS, *_GOARCH, or *_GOOS_GOARCH for any known operating -// system and architecture values, then the file is considered to have an implicit -// build constraint requiring those terms. +// matches any of the following patterns: +// *_GOOS +// *_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: // |
