Documentation ¶
Overview ¶
Package dfsrflag provides common flag value implementations used by commands in the dfsr library.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RegexpSlice ¶
RegexpSlice is a flag value that parses one or more regular expressions.
All regular expressions parsed by this type will be case-insensitive.
func (*RegexpSlice) Set ¶
func (s *RegexpSlice) Set(value string) error
Set compiles value and adds it to s. The regular expression will be case-insensitive.
If the regular expression cannot be compiled an error will be returned.
func (*RegexpSlice) String ¶
func (s *RegexpSlice) String() string
String returns a string representation of the regular expression slice.
type UintOrInf ¶
UintOrInf stores an unsigned integer value that can be used by the flag package. It is capable of indicating the special value infinity and whether a value was specified or not.