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

🔥 Feature: add queryFloat parser #2328

Merged
merged 1 commit into from
Feb 9, 2023
Merged

Conversation

dozheiny
Copy link
Contributor

@dozheiny dozheiny commented Feb 9, 2023

Hi!
Before this PR, I wrote this feature for integer variable #2306.
Now I wrote this feature for float64 variables,
With this parser, you can easily extract float values from URL queries. Pass the desired key and the URL string to the parser, and it will return the float value associated with that key. This eliminates the need for manual string parsing and makes retrieving the values you need easier.

Copy link
Member

@gaby gaby left a comment

Choose a reason for hiding this comment

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

LGTM

ctx.go Show resolved Hide resolved
@li-jin-gou li-jin-gou merged commit 54439a5 into gofiber:master Feb 9, 2023
@dozheiny dozheiny deleted the query_float branch March 30, 2023 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants