]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.typeparams] runtime/internal/sys: replace GOOS with goos.GOOS
authorMichael Anthony Knyszek <mknyszek@google.com>
Wed, 16 Jun 2021 21:15:19 +0000 (21:15 +0000)
committerMichael Knyszek <mknyszek@google.com>
Thu, 17 Jun 2021 20:42:08 +0000 (20:42 +0000)
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>
src/runtime/extern.go
src/runtime/internal/sys/consts.go

index 1c70e8a3618152627b6853611f9a44f2fd28ac3e..eca4062e68c17bb663e3cc0541664858c4627dbe 100644 (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.
index 07fbaf4d73c4a4a4f6967b7a38f8d6f5f030ab42..4d45f9d0d031514fe49827b1d97a58f3bcdb1e42 100644 (file)
@@ -80,8 +80,6 @@ const (
        GoarchWasm        = goarch.GoarchWasm
 )
 
-const GOOS = goos.GOOS
-
 const (
        GoosAix       = goos.GoosAix
        GoosAndroid   = goos.GoosAndroid