Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

cmd/go/internal/doc: go doc -http nav bar behavior inconsistent with pkg.go.dev #75185

Closed as not planned
@aaraney

Description

Go version

go version go1.25.0 darwin/arm64

Output of go env in your module/workspace:

AR='ar'
CC='cc'
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_ENABLED='1'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
CXX='c++'
GCCGO='gccgo'
GO111MODULE=''
GOARCH='arm64'
GOARM64='v8.0'
GOAUTH='netrc'
GOBIN=''
GOCACHE='/Users/redacted/Library/Caches/go-build'
GOCACHEPROG=''
GODEBUG=''
GOENV='/Users/redacted/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFIPS140='off'
GOFLAGS=''
GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/0h/sb99n9vn58q2n4nsvlh_k6400000gp/T/go-build1166451525=/tmp/go-build -gno-record-gcc-switches -fno-common'
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMOD='/Users/redacted/github/sandbox/go_streaming_json/go.mod'
GOMODCACHE='/Users/redacted/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/redacted/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/opt/homebrew/Cellar/go/1.25.0/libexec'
GOSUMDB='sum.golang.org'
GOTELEMETRY='local'
GOTELEMETRYDIR='/Users/redacted/Library/Application Support/go/telemetry'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/opt/homebrew/Cellar/go/1.25.0/libexec/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='go1.25.0'
GOWORK=''
PKG_CONFIG='pkg-config'

What did you do?

Ran go doc -http bytes and opened browser to http://localhost:{port}/bytes#pkg-types and compared nav bar view to https://pkg.go.dev/bytes#pkg-types. I scrolled on both pages to see nav bar changes. I replicated this with:

  • Chrome Version 134.0.6998.166 (Official Build) (arm64)
  • Firefox Version 142.0.1 (aarch64)
  • Safari Version 17.5 (19618.2.12.11.6) (aarch64)

What did you see happen?

The page nav bars and nav bar scroll behavior differs.

go doc's page:

http://localhost:{port}/bytes#pkg-types

Image
https://pkg.go.dev/bytes#pkg-types's rendering:

https://pkg.go.dev/bytes#pkg-types

Image

What did you expect to see?

I expected go doc -http's nav bar to replicate or nearly replicate https://pkg.go.dev/bytes's. Notably, go doc -http's page shows the Examples section in the nav bar when I would expect it to show Types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /