[dev.typeparams] runtime/internal/sys: replace GOOS with goos.GOOS

Refactoring done by rf tool:

    rf 'ex . {
	import "internal/goos"
	import "runtime/internal/sys"
	sys.GOOS -> goos.GOOS
    }'

Change-Id: I4b4aadff8640731ce4cb9bdad9954c267eb484c8
Reviewed-on: https://go-review.googlesource.com/c/go/+/328339
Trust: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
Michael Anthony Knyszek 2021-06-16 21:15:19 +00:00 committed by Michael Knyszek
parent 5c028751bd
commit 671954e72e
2 changed files with 2 additions and 4 deletions

View file

@ -188,7 +188,7 @@ package runtime
import (
"internal/goarch"
"runtime/internal/sys"
"internal/goos"
)
// Caller reports file and line number information about function invocations on
@ -263,7 +263,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
const GOOS string = goos.GOOS
// GOARCH is the running program's architecture target:
// one of 386, amd64, arm, s390x, and so on.

View file

@ -80,8 +80,6 @@ const (
GoarchWasm = goarch.GoarchWasm
)
const GOOS = goos.GOOS
const (
GoosAix = goos.GoosAix
GoosAndroid = goos.GoosAndroid