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

cmd/doc: package overview does not show type parameters #49280

Closed
DeedleFake opened this issue Nov 2, 2021 · 1 comment
Closed

cmd/doc: package overview does not show type parameters #49280

DeedleFake opened this issue Nov 2, 2021 · 1 comment

Comments

@DeedleFake
Copy link

I took a look around but didn't see a related issue filed already. This might be a known thing as it's still under active development, but as I don't know I figured I'd post this.

What version of Go are you using (go version)?

$ go version
go version devel go1.18-a97c527ac4 Tue Nov 2 05:43:05 2021 +0000 linux/amd64

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="$HOME/.cache/go-build"
GOENV="$HOME/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="$HOME/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="$HOME/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="$HOME/sdk/gotip"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="$HOME/sdk/gotip/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="devel go1.18-a97c527ac4 Tue Nov 2 05:43:05 2021 +0000"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="$HOME/devel/fixd/lynx/backend/go.mod"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build894289396=/tmp/go-build -gno-record-gcc-switches"

What did you do?

$ cd "$(mktemp -d)"
$ go mod init example
$ cat << EOF > example.go
package example

func Example[T any](v T) { println(v) }
EOF
$ go doc

What did you expect to see?

package example // import "example"

func Example[T any](v T)

What did you see instead?

package example // import "example"

func Example(v T)
@seankhliao
Copy link
Member

Duplicate of #49210

@seankhliao seankhliao marked this as a duplicate of #49210 Nov 2, 2021
@golang golang locked and limited conversation to collaborators Nov 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants