Commit 9f86c3bc authored by Steven Allen's avatar Steven Allen

doc: document Flag.WithDefault

parent 92fe8cb9
...@@ -55,6 +55,7 @@ const ( ...@@ -55,6 +55,7 @@ const (
True Flag = 1 True Flag = 1
) )
// WithDefault resolves the value of the flag given the provided default value.
func (f Flag) WithDefault(defaultValue bool) bool { func (f Flag) WithDefault(defaultValue bool) bool {
switch f { switch f {
case False: case False:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment