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

Extract URL component parameters in a type-safe manner #18

Open
rcrowley opened this issue Jul 30, 2013 · 1 comment
Open

Extract URL component parameters in a type-safe manner #18

rcrowley opened this issue Jul 30, 2013 · 1 comment

Comments

@rcrowley
Copy link
Owner

This would be one thing to rip off from GoRest.

@rcrowley
Copy link
Owner Author

I think I have a solution! To preserve the orthogonality of Tiger Tonic features, TrieServeMux will continue to extract URL component parameters as strings into a url.Values but Marshaled will use tags like url:"foo" to pull {foo} from the url.Values into the request struct, at which point its type will have to be made to match. If the types are incompatible (for example, if foo is presented for an int field) we can respond 400.

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

No branches or pull requests

1 participant