Versions in this module Expand all Collapse all v1 v1.0.1 Jul 23, 2022 v1.0.0 Sep 1, 2021 Changes in this version + var ErrInvalidNodeSet = errors.New("invalid nodeset") + var ErrInvalidPadding = errors.New("invalid padding") + var ErrInvalidRangeSet = errors.New("invalid range set") + var ErrMismatchedDimensions = errors.New("mismatched dimensions") + var ErrParseNodeSet = errors.New("nodeset parse error") + var ErrParseRangeSet = errors.New("rangeset parse error") + func Expand(nodestr string) ([]string, error) + func Merge(nodestr ...string) (string, error) + func Split(nodelist []string, w int) [][]string + type NodeSet struct + func EmptyNodeSet() *NodeSet + func NewNodeSet(nodestr string) (*NodeSet, error) + func (ns *NodeSet) Add(nodestr string) error + func (ns *NodeSet) Iterator() *NodeSetIterator + func (ns *NodeSet) Len() int + func (ns *NodeSet) MarshalJSON() ([]byte, error) + func (ns *NodeSet) String() string + func (ns *NodeSet) UnmarshalJSON(data []byte) error + type NodeSetIterator struct + func Yield(nodestr string) (*NodeSetIterator, error) + func (i *NodeSetIterator) Len() int + func (i *NodeSetIterator) Next() bool + func (i *NodeSetIterator) Value() string + type Pattern struct + type RangeSet struct + func NewRangeSet(pattern string) (rs *RangeSet, err error) + func (rs *RangeSet) AddSlice(slice *Slice) error + func (rs *RangeSet) AddString(subrange string) (err error) + func (rs *RangeSet) Clone() *RangeSet + func (rs *RangeSet) Difference(other *RangeSet) *RangeSet + func (rs *RangeSet) Empty() bool + func (rs *RangeSet) Equal(other *RangeSet) bool + func (rs *RangeSet) Greater(other *RangeSet) bool + func (rs *RangeSet) InPlaceDifference(other *RangeSet) + func (rs *RangeSet) InPlaceIntersection(other *RangeSet) + func (rs *RangeSet) InPlaceSymmetricDifference(other *RangeSet) + func (rs *RangeSet) InPlaceUnion(other *RangeSet) + func (rs *RangeSet) Intersection(other *RangeSet) *RangeSet + func (rs *RangeSet) Ints() []int + func (rs *RangeSet) Items() []*RangeSetItem + func (rs *RangeSet) Len() int + func (rs *RangeSet) Less(other *RangeSet) bool + func (rs *RangeSet) Slices() []*Slice + func (rs *RangeSet) String() string + func (rs *RangeSet) Strings() []string + func (rs *RangeSet) Subset(other *RangeSet) bool + func (rs *RangeSet) Superset(other *RangeSet) bool + func (rs *RangeSet) SymmetricDifference(other *RangeSet) *RangeSet + func (rs *RangeSet) Union(other *RangeSet) *RangeSet + type RangeSetItem struct + type RangeSetND struct + func NewRangeSetND(args [][]string) (nd *RangeSetND, err error) + func (nd *RangeSetND) Dim() int + func (nd *RangeSetND) Dump() []string + func (nd *RangeSetND) FormatList() [][]interface{} + func (nd *RangeSetND) Iterator() *RangeSetNDIterator + func (nd *RangeSetND) Len() int + func (nd *RangeSetND) Ranges() [][]*RangeSet + func (nd *RangeSetND) Sort() + func (nd *RangeSetND) String() string + func (rs *RangeSetND) Fold() + func (rs *RangeSetND) Update(other *RangeSetND) error + type RangeSetNDIterator struct + func NewRangeSetNDIterator() *RangeSetNDIterator + func (i *RangeSetNDIterator) FormatList() []interface{} + func (i *RangeSetNDIterator) IntValue() []int + func (i *RangeSetNDIterator) Len() int + func (i *RangeSetNDIterator) Next() bool + func (it *RangeSetNDIterator) Sort() + type Slice struct + func (s *Slice) String() string