You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Describe the feature
To add
MustByDefault bool
andNoPanicByDefualt bool
to thecopier.Option
struct. Setting both to truewill have same effect as adding
copier:"must,nopanic"
to every field in the src struct.Motivation
Not having to specify
copier:"must"
orcopier:"must,nopanic"
to every field in the struct when it's a desired default.Related Issues
The text was updated successfully, but these errors were encountered: