diff options
author | Shulhan <m.shulhan@gmail.com> | 2018-08-20 23:45:34 +0700 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2018-08-20 19:14:00 +0000 |
commit | 1ba74448f25fa9e69c4f9ed155dd43eb496cfa70 (patch) | |
tree | 77722c05cf85d8b0d0507b445990edee435c79fc /src/runtime/extern.go | |
parent | 09ec523049e3f26cba9b431dcc8ea4820b5dcc89 (diff) | |
download | go-1ba74448f25fa9e69c4f9ed155dd43eb496cfa70.tar.gz go-1ba74448f25fa9e69c4f9ed155dd43eb496cfa70.zip |
runtime: document all possible values for GOOS and GOARCH
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>
Diffstat (limited to 'src/runtime/extern.go')
-rw-r--r-- | src/runtime/extern.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/extern.go b/src/runtime/extern.go index 7171b139c3..2788bd354b 100644 --- a/src/runtime/extern.go +++ b/src/runtime/extern.go @@ -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: |