Skip to content

x/website: change Handle to HandleFunc in routing-enhancements blog post #66199

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

Closed
rwxrob opened this issue Mar 8, 2024 · 2 comments
Closed
Labels
Documentation Issues describing a change to documentation. FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. website
Milestone

Comments

@rwxrob
Copy link

rwxrob commented Mar 8, 2024

What is the URL of the page with the issue?

https://go.dev/blog/routing-enhancements

What is your user agent?

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36

Screenshot

handlepost-bug

What did you do?

Read the docs. The reference to "handlePost" function suggests that the second argument is, in fact, a function and not a struct. Therefore, HandleFunc would be called instead.

What did you expect to see?

HandleFunc

What did you see instead?

Handle
@gopherbot gopherbot added this to the Unreleased milestone Mar 8, 2024
@mknyszek mknyszek changed the title x/website: change Handle to HandleFunc x/website: change Handle to HandleFunc in routing-enhancements blog post Mar 8, 2024
@mknyszek
Copy link
Contributor

mknyszek commented Mar 8, 2024

CC @jba

@mknyszek mknyszek added Documentation Issues describing a change to documentation. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. labels Mar 8, 2024
@gopherbot
Copy link
Contributor

Change https://go.dev/cl/571275 mentions this issue: _content/blog: fix function name in routing post

@golang golang locked and limited conversation to collaborators Mar 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Documentation Issues describing a change to documentation. FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. website
Projects
None yet
Development

No branches or pull requests

3 participants