]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: document all possible values for GOOS and GOARCH
authorShulhan <m.shulhan@gmail.com>
Mon, 20 Aug 2018 16:45:34 +0000 (23:45 +0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 20 Aug 2018 19:14:00 +0000 (19:14 +0000)
The updated list is taken from "src/go/build/syslist.go".

Reason: one should not do web search to know the possible values of GOOS
and GOARCH.  The search result point to stackoverflow page which
reference the above source and documentation on installation page [1].
It should available offline (as in local godoc), as part of package
documentation.

[1] https://golang.org/doc/install/source#environment

Change-Id: I736804b8ef4dc11e0260fa862999212ab3f7b3fd
Reviewed-on: https://go-review.googlesource.com/129935
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/extern.go

index 7171b139c32395b016eb100291fe743bfbfce87e..2788bd354b16c4aa57e8c0fa9c94224a1af3f07d 100644 (file)
@@ -238,6 +238,7 @@ func Version() string {
 
 // GOOS is the running program's operating system target:
 // one of darwin, freebsd, linux, and so on.
+// To view possible combinations of GOOS and GOARCH, run "go tool dist list".
 const GOOS string = sys.GOOS
 
 // GOARCH is the running program's architecture target: