mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-02 23:08:07 +08:00
go-ipfs-config: doc: document Flag.WithDefault
This commit is contained in:
parent
e26444e4c7
commit
5c1b4cd0e6
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user