From 5c1b4cd0e686cd41d6cbf48a324b45e5209f3407 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Mon, 15 Jun 2020 20:01:33 -0700 Subject: [PATCH] go-ipfs-config: doc: document Flag.WithDefault --- config/types.go | 1 + 1 file changed, 1 insertion(+) diff --git a/config/types.go b/config/types.go index 3d5418a2c..979182233 100644 --- a/config/types.go +++ b/config/types.go @@ -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: