-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Artem Bortnikov <[email protected]>
- Loading branch information
1 parent
2466601
commit cb25f46
Showing
8 changed files
with
193 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package flag | ||
|
||
type embeddedParser struct { | ||
visited bool | ||
separator string | ||
currentValue any | ||
} | ||
|
||
func (p *embeddedParser) SetVisited(v bool) { | ||
p.visited = v | ||
} | ||
|
||
func (p *embeddedParser) IsVisited() bool { | ||
return p.visited | ||
} | ||
|
||
func (p *embeddedParser) SetSeparator(s string) { | ||
p.separator = s | ||
} | ||
|
||
func (p *embeddedParser) Separator() string { | ||
return p.separator | ||
} | ||
|
||
func (p *embeddedParser) SetCurrentValue(v any) { | ||
p.currentValue = v | ||
} | ||
|
||
func (p *embeddedParser) CurrentValue() any { | ||
return p.currentValue | ||
} |
Oops, something went wrong.