]> Cypherpunks repositories - gostls13.git/commit
cmd/go: move runtime/debug.modinfo to runtime.modinfo
authorRuss Cox <rsc@golang.org>
Tue, 23 Apr 2019 03:01:26 +0000 (23:01 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 23 Apr 2019 14:21:30 +0000 (14:21 +0000)
commitb51c157025c1ff08b5090d9cf13bc88a068c5190
tree29194d730435554ec96446d8ced7c7372b0921f5
parentfac3b5d05ecf31a2491949cc905312a34e272ae8
cmd/go: move runtime/debug.modinfo to runtime.modinfo

It is easier to ensure that the symbol is always present
if we move it to package runtime. Avoids init-time work.
Also moves it next to buildVersion, the other similar symbol.

Setting up for "go version <binary>".

For #31624.

Change-Id: I943724469ce6992153e701257eb6f12da88c8e4e
Reviewed-on: https://go-review.googlesource.com/c/go/+/173341
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/go/internal/modload/build.go
src/runtime/debug.go
src/runtime/debug/mod.go
src/runtime/proc.go