We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Im having a problem passing a float in .GET with params. Is there any solution for this problem? Any double will return "resource not found"
The text was updated successfully, but these errors were encountered:
I just ended up using .Post
Sorry, something went wrong.
The documentation isn't very clear on how to get query parameters, but see #104
I succeed to get a float from query parameter:
func GetRecord(w rest.ResponseWriter, req *rest.Request) { if req.URL.Query().Get("startDate") != "" { if startDate, err := strconv.ParseFloat(req.URL.Query().Get("startDate"), 64); err == nil && startDate > 0 { // do somethings } else if err != nil { // do somethings } } // do somethings }
No branches or pull requests
Im having a problem passing a float in .GET with params. Is there any solution for this problem? Any double will return "resource not found"
The text was updated successfully, but these errors were encountered: