go-ipfs-config: doc: document Flag.WithDefault
Steven Allen committed
Jun 15, 2020 at 20:01 UTC
5c1b4cd0e686cd41d6cbf48a324b45e5209f3407
1 file changed
+1
config/types.go
+1
@@ -55,6 +55,7 @@ const (
55
True Flag = 1
56
)
57
58
+// WithDefault resolves the value of the flag given the provided default value.
59
func (f Flag) WithDefault(defaultValue bool) bool {
60
switch f {
61
case False: