]> Cypherpunks repositories - gostls13.git/commitdiff
go/build: document GOOS.go also has implicit GOOS build constraint
authorShenghou Ma <minux.ma@gmail.com>
Sat, 4 May 2013 18:23:19 +0000 (02:23 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Sat, 4 May 2013 18:23:19 +0000 (02:23 +0800)
R=golang-dev, i.caught.air, alexb, r
CC=golang-dev
https://golang.org/cl/9064044

src/pkg/go/build/doc.go

index 4b66b84bb6d60f68dbec7ffc229bf9cb6c17bc18..b5fc071d61a73b716f1db16a1ec4bba8a206bf99 100644 (file)
 //     - 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:
 //