Skip to content

Conversation

catatsuy
Copy link
Contributor

This pull request includes updates to the chi examples, specifically adding a new example that demonstrates the usage of PathValue for retrieving URL parameters. The most important changes include the addition of a new example in the _examples/README.md file and the implementation of the pathvalue example in a new Go file.

New example addition:

  • _examples/README.md: Added a new entry for the pathvalue example, which demonstrates the usage of PathValue for retrieving URL parameters.

Implementation of the pathvalue example:

  • _examples/pathvalue/main.go: Created a new Go file that includes a router setup with a handler to retrieve and respond with a URL parameter using PathValue.

refs: #984

Copy link
Contributor

@VojtechVitek VojtechVitek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@VojtechVitek VojtechVitek merged commit 80d8da2 into go-chi:master Aug 15, 2025
10 checks passed
@catatsuy catatsuy deleted the feature-add-pathvalue-example branch August 16, 2025 04:07
@catatsuy
Copy link
Contributor Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants