Documentation ¶
Overview ¶
ranges provides methods to expand or condense ranges of like strings. This is used for specifying a list of hosts eg. host[1-10]. The ranges package can expand host[1-10] into a slice of strings: [host1, host2, host3...]. Similarly, it can condense a slice of strings into a compact form: [host1, host2, host5, host6] -> host[1-2,5-6].
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SplitList ¶
SplitList takes a string such as "foo,bar[1-3]" and expands it to a fully enumerated list of names.
func UnsplitList ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.