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

Allow setting default values for Verbs #22

Open
rhaist opened this issue Sep 5, 2016 · 3 comments
Open

Allow setting default values for Verbs #22

rhaist opened this issue Sep 5, 2016 · 3 comments

Comments

@rhaist
Copy link

rhaist commented Sep 5, 2016

I did not find the possibility to set default values for Verbs.
Maybe this is just missing in the documentation.

@surma
Copy link
Collaborator

surma commented Sep 5, 2016

It is in the docs, but it is just a comment in an example, so definitely not top-level enough. Will fix. Thanks for filing!

@rhaist
Copy link
Author

rhaist commented Sep 5, 2016

In the docs there is only a way to set top-level parameters. But what if you want to set a default for Verb.Delete.Path ?

@surma
Copy link
Collaborator

surma commented Sep 5, 2016

Same thing. Use the initialization value. You might have to define a separate type for the embedded structs to be able to do that, though.

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

No branches or pull requests

2 participants