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

x/pkgsite: #59036

Closed
ghostsquad opened this issue Mar 14, 2023 · 2 comments
Closed

x/pkgsite: #59036

ghostsquad opened this issue Mar 14, 2023 · 2 comments

Comments

@ghostsquad
Copy link

What is the URL of the page with the issue?

https://pkg.go.dev/sort

What is your user agent?

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/110.0

Screenshot

image

image

What did you do?

Viewed the page, looking for the package-level Reverse function.

What did you expect to see?

sort.Reverse is a package-level function that should be listed on this page, in the index and in the functions section.

What did you see instead?

It's not listed in the index, nor in the functions section. Instead I found the definition of it under types (which it is not a type).

https://pkg.go.dev/sort#Reverse

image

@gopherbot gopherbot added this to the Unreleased milestone Mar 14, 2023
@rsc
Copy link
Contributor

rsc commented Mar 14, 2023

Constructors are listed under their types. Reverse is a constructor for an Interface.

@rsc rsc closed this as completed Mar 14, 2023
@ghostsquad
Copy link
Author

Constructors are listed under their types. Reverse is a constructor for an Interface.

It can't be a constructor, as it also has a parameter of the same type it produces.

@golang golang locked and limited conversation to collaborators Mar 14, 2024
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