Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidEllipsesFormatFn = func(arg string) error { return fmt.Errorf("Invalid ellipsis format in (%s), Ellipsis range must be provided in format {N...M} where N and M are positive integers, M must be greater than N, with an allowed minimum range of 4", arg) }
ErrInvalidEllipsesFormatFn error returned when invalid ellipses format is detected.
Functions ¶
func HasEllipses ¶
HasEllipses - returns true if input arg has ellipses type pattern.
Types ¶
type ArgPattern ¶
type ArgPattern []Pattern
ArgPattern contains a list of patterns provided in the input.
func FindEllipsesPatterns ¶
func FindEllipsesPatterns(arg string) (ArgPattern, error)
FindEllipsesPatterns - finds all ellipses patterns, recursively and parses the ranges numerically.
func (ArgPattern) Expand ¶
func (a ArgPattern) Expand() [][]string
Expand - expands all the ellipses patterns in the given argument.
Click to show internal directories.
Click to hide internal directories.