ff
ff copied to clipboard
Support default for flag.Value implementations registered via AddStruct
I noticed when I had a field which implemented flag.Value and I registered it using AddStruct that the default wasn't being respected. This adds support this by wrapping the flag.Value in another implementation which tracks if Set is called and returns the default if not.
PTAL at #143
Should be fixed by #148
Thank you!