diff options
| author | xieyuschen <xieyuschen@gmail.com> | 2024-10-14 19:11:53 +0800 |
|---|---|---|
| committer | Sam Thanawalla <samthanawalla@google.com> | 2025-05-13 09:21:20 -0700 |
| commit | a632009c4a0b0826871baae7e7ce7804b4089d93 (patch) | |
| tree | 4b2a1513bc5236c81f969cf940d9162bb8a98c81 /src/testing/panic_test.go | |
| parent | 698f86139bf72bcf7cbf08accc1c34394cb57acb (diff) | |
| download | go-a632009c4a0b0826871baae7e7ce7804b4089d93.tar.xz | |
cmd/go: support -json flag in go version
It supports features described in the issue:
* add -json flag for 'go version -m' to print json encoding of
runtime/debug.BuildSetting to standard output.
* report an error when specifying -json flag without -m.
* print build settings on seperated line for each binary
Fixes #69712
Change-Id: I79cba2109f80f7459252d197a74959694c4eea1f
Reviewed-on: https://go-review.googlesource.com/c/go/+/619955
Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/testing/panic_test.go')
0 files changed, 0 insertions, 0 deletions
