go-ipfs-config: doc: document Flag.WithDefault

This commit is contained in:
Steven Allen 2020-06-15 20:01:33 -07:00
parent e26444e4c7
commit 5c1b4cd0e6

View File

@ -55,6 +55,7 @@ const (
True Flag = 1
)
// WithDefault resolves the value of the flag given the provided default value.
func (f Flag) WithDefault(defaultValue bool) bool {
switch f {
case False: