Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3-config
Commits
9f86c3bc
Commit
9f86c3bc
authored
Jun 15, 2020
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: document Flag.WithDefault
parent
92fe8cb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
types.go
types.go
+1
-0
No files found.
types.go
View file @
9f86c3bc
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment