Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net/http: broken link to ResponseWriter trailers example #50279

Closed
reillywatson opened this issue Dec 20, 2021 · 1 comment
Closed

net/http: broken link to ResponseWriter trailers example #50279

reillywatson opened this issue Dec 20, 2021 · 1 comment
Labels
Documentation FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.

Comments

@reillywatson
Copy link
Contributor

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.

@seankhliao seankhliao added Documentation NeedsFix The path to resolution is known, but the work has not been done. labels Dec 20, 2021
reillywatson added a commit to reillywatson/go that referenced this issue Dec 20, 2021
The links to this example were using an underscore separator instead of a hyphen, and incorrect casing.

Fixes golang#50279
@gopherbot
Copy link

Change https://golang.org/cl/373514 mentions this issue: net/http: fix link to ResponseWriter trailer example

@golang golang locked and limited conversation to collaborators Dec 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Documentation FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

3 participants