golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
123k stars 17.53k forks source link

x/pkgsite: show version when global variables and constants are added #68266

Open h9jiang opened 2 months ago

h9jiang commented 2 months ago

What is the URL of the page with the issue?

https://pkg.go.dev/context#pkg-variables

What is your user agent?

N/A

Screenshot

image

What did you do?

N/A

What did you see happen?

The variable like Canceled, DeadlineExceeded does not have the available version. In comparison, the function defined below AfterFunc() do have available version.

What did you expect to see?

The Variables and Constants should also have this information displayed in the pkg.go.dev.

gabyhelp commented 2 months ago

Related Issues

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)