go/doc: Some functions with type parameters omitted #49477
Labels
FrozenDueToAge
release-blocker
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
N/A
What operating system and processor architecture are you using (
go env
)?Custom VSCode devcontainer, Dockerfile based on
golang:latest
, but running a Go build of the latestmaster
branch.go env
OutputWhat did you do?
Some functions that take type parameters, are ignored / not documented by
godoc
http server. Notably I found generic functions that return a value or slice of Type are omitted in the documentation output. While functions which receive an argument of a generic Type are represented in the documentation.I've created a small Github repo to easily reproduce. It contains a
source.go
file with generic functions, and a Dockerfile that build the latestgolang/go:master
withx/tools/cmd/godoc@master
:git clone https://github.com/muhlemmer/godoc_generics_issue.git
docker build -t ggi .
docker run -p 6060:6060 ggi
What did you expect to see?
All exported functions, with or without type parameters to be documented.
What did you see instead?
This function is documented:
This functions are missing:
The text was updated successfully, but these errors were encountered: