From a4d3c73ac3cc109ac2088beadf4d51987a60c625 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 18 Jan 2022 19:14:25 -0800 Subject: [PATCH] doc/go1.18: don't mention -buildinfo flag It was removed in CL 378576. For #50501 Change-Id: I26b8f0e99a40fa5c616aa4849a6ab15dd0d072f8 Reviewed-on: https://go-review.googlesource.com/c/go/+/379314 Trust: Ian Lance Taylor Run-TryBot: Ian Lance Taylor TryBot-Result: Gopher Robot Reviewed-by: Bryan Mills --- doc/go1.18.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/go1.18.html b/doc/go1.18.html index 133bfe0ef2b12..a43b65d0a21f3 100644 --- a/doc/go1.18.html +++ b/doc/go1.18.html @@ -253,10 +253,10 @@

Go command

including build and tool tags (set with -tags), compiler, assembler, and linker flags (like -gcflags), whether cgo was enabled, and if it was, the values of the cgo environment variables - (like CGO_CFLAGS). This information may be omitted using the - flag -buildinfo=false. Both VCS and build information may be - read together with module information using go - version -m file or + (like CGO_CFLAGS). + Both VCS and build information may be read together with module + information using + go version -m file or runtime/debug.ReadBuildInfo (for the currently running binary) or the new debug/buildinfo package.