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

Add pathvalue example to README and implement PathValue handler. #985

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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

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.

2 participants