Closed
Description
What version of Go are you using (go version
)?
$ go version go version go1.17.3 darwin/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env
)?
go env
Output
$ go env GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/Users/reilly/Library/Caches/go-build" GOENV="/Users/reilly/Library/Application Support/go/env" GOEXE="" GOEXPERIMENT="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOINSECURE="" GOMODCACHE="/Users/reilly/go/pkg/mod" GONOPROXY="github.com/EverlongProject" GONOSUMDB="github.com/EverlongProject" GOOS="darwin" GOPATH="/Users/reilly/go" GOPRIVATE="github.com/EverlongProject" GOPROXY="https://proxy.golang.org,direct" GOROOT="/usr/local/go" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64" GOVCS="" GOVERSION="go1.17.3" GCCGO="gccgo" AR="ar" CC="clang" CXX="clang++" CGO_ENABLED="1" GOMOD="/dev/null" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/gz/4ytqr0r12q1fbx8ct_w3k_880000gn/T/go-build2936231312=/tmp/go-build -gno-record-gcc-switches -fno-common" GOROOT/bin/go version: go version go1.17.3 darwin/amd64 GOROOT/bin/go tool compile -V: compile version go1.17.3 uname -v: Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:54 PST 2021; root:xnu-8019.61.5~1/RELEASE_X86_64 ProductName: macOS ProductVersion: 12.1 BuildVersion: 21C52 lldb --version: lldb-1300.0.42.3 Swift version 5.5.2-dev
What did you do?
Tried to follow the "example_ResponseWriter_trailers" link just after the text "the normal Go trailers mechanism is preferred" in the "Constants" section of the doc.
What did you expect to see?
The relevant example
What did you see instead?
The top of the page.
The link on the page is https://golang.org/pkg/net/http/#example_ResponseWriter_trailers.
The actual anchor attached to the example is #example-ResponseWriter-Trailers
.