From 1ba74448f25fa9e69c4f9ed155dd43eb496cfa70 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Mon, 20 Aug 2018 23:45:34 +0700 Subject: [PATCH] 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 --- src/runtime/extern.go | 1 + 1 file changed, 1 insertion(+) 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: -- 2.50.0