Documentation ¶
Overview ¶
Package commandline contains helper types for collecting command-line arguments.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReplaceRule ¶
A ReplaceRule maps a pattern to its replacement. On the command line, ReplaceRules are provided as strings separated by "->".
type ReplaceRuleList ¶
type ReplaceRuleList []ReplaceRule
A ReplaceRuleList is used to collect multiple replacement rules from the command line.
func (*ReplaceRuleList) Set ¶
func (r *ReplaceRuleList) Set(s string) error
Set adds a replacement rule to the ReplaceRuleList, in the order provided on the command line.
func (*ReplaceRuleList) String ¶
func (r *ReplaceRuleList) String() string
Click to show internal directories.
Click to hide internal directories.