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

Export the previously unexported paramsKey as ParamsKey to allow #4

Merged
merged 1 commit into from
May 29, 2024

Conversation

shellfu
Copy link
Owner

@shellfu shellfu commented May 29, 2024

Changes proposed by this PR

closes #2

  • Export paramsKey as ParamsKey to allow direct context access for parameters.
  • Update documentation to reflect the new usage.

Notes to reviewer

This PR exports the previously unexported paramsKey as ParamsKey. This change allows developers to directly access parameters stored in the request context, enhancing the flexibility of the muxer package. The Params function can still be used, but direct context access provides an additional method for parameter extraction.

developers to directly access parameters stored in the request context.
This change improves flexibility and usability by enabling direct context
access for parameters without relying solely on the `Params` function.

The change ensures that parameters set in the context can be easily
retrieved using the `ParamsKey` context key, providing an alternative
method for parameter extraction.

Issue-Number: 2
Issue-URL: #2
@shellfu shellfu merged commit 86ae44d into main May 29, 2024
2 checks passed
@shellfu shellfu deleted the issue-2 branch May 29, 2024 20:33
shellfu added a commit that referenced this pull request Jan 29, 2025
Export the previously unexported `paramsKey` as `ParamsKey` to allow
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.

1 participant