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

Option for making copier:"must" or copier:"must,nopanic" a default behavior. #175

Open
josephbuchma opened this issue Mar 10, 2023 · 1 comment
Assignees

Comments

@josephbuchma
Copy link

josephbuchma commented Mar 10, 2023

Describe the feature

To add MustByDefault bool and NoPanicByDefualt bool to the copier.Option struct. Setting both to true
will have same effect as adding copier:"must,nopanic" to every field in the src struct.

Motivation

Not having to specify copier:"must" or copier:"must,nopanic" to every field in the struct when it's a desired default.

Related Issues

@tedkornish
Copy link

Seconding this request. It would give significant security as structs change over time.

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

3 participants