Documentation ¶
Index ¶
- Variables
- func Expand(nodestr string) ([]string, error)
- func Merge(nodestr ...string) (string, error)
- func Split(nodelist []string, w int) [][]string
- type NodeSet
- type NodeSetIterator
- type Pattern
- type RangeSet
- 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
- type RangeSetND
- func (nd *RangeSetND) Dim() int
- func (nd *RangeSetND) Dump() []string
- func (rs *RangeSetND) Fold()
- 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) Update(other *RangeSetND) error
- type RangeSetNDIterator
- type Slice
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidNodeSet = errors.New("invalid nodeset") ErrParseNodeSet = errors.New("nodeset parse error") )
Functions ¶
Types ¶
type NodeSet ¶
type NodeSet struct {
// contains filtered or unexported fields
}
func EmptyNodeSet ¶
func EmptyNodeSet() *NodeSet
func NewNodeSet ¶
func (*NodeSet) Iterator ¶
func (ns *NodeSet) Iterator() *NodeSetIterator
func (*NodeSet) MarshalJSON ¶
func (*NodeSet) UnmarshalJSON ¶
type NodeSetIterator ¶
type NodeSetIterator struct {
// contains filtered or unexported fields
}
func Yield ¶
func Yield(nodestr string) (*NodeSetIterator, error)
func (*NodeSetIterator) Len ¶
func (i *NodeSetIterator) Len() int
func (*NodeSetIterator) Next ¶
func (i *NodeSetIterator) Next() bool
func (*NodeSetIterator) Value ¶
func (i *NodeSetIterator) Value() string
type RangeSet ¶
type RangeSet struct {
// contains filtered or unexported fields
}
func NewRangeSet ¶
func (*RangeSet) Difference ¶
func (*RangeSet) InPlaceDifference ¶
func (*RangeSet) InPlaceIntersection ¶
func (*RangeSet) InPlaceSymmetricDifference ¶
func (*RangeSet) InPlaceUnion ¶
func (*RangeSet) Intersection ¶
func (*RangeSet) Items ¶
func (rs *RangeSet) Items() []*RangeSetItem
func (*RangeSet) SymmetricDifference ¶
type RangeSetItem ¶
type RangeSetItem struct {
// contains filtered or unexported fields
}
type RangeSetND ¶
type RangeSetND struct {
// contains filtered or unexported fields
}
func NewRangeSetND ¶
func NewRangeSetND(args [][]string) (nd *RangeSetND, err error)
func (*RangeSetND) Dim ¶
func (nd *RangeSetND) Dim() int
func (*RangeSetND) Dump ¶
func (nd *RangeSetND) Dump() []string
func (*RangeSetND) Fold ¶
func (rs *RangeSetND) Fold()
func (*RangeSetND) FormatList ¶
func (nd *RangeSetND) FormatList() [][]interface{}
func (*RangeSetND) Iterator ¶
func (nd *RangeSetND) Iterator() *RangeSetNDIterator
func (*RangeSetND) Len ¶
func (nd *RangeSetND) Len() int
func (*RangeSetND) Ranges ¶
func (nd *RangeSetND) Ranges() [][]*RangeSet
func (*RangeSetND) Sort ¶
func (nd *RangeSetND) Sort()
func (*RangeSetND) String ¶
func (nd *RangeSetND) String() string
func (*RangeSetND) Update ¶
func (rs *RangeSetND) Update(other *RangeSetND) error
type RangeSetNDIterator ¶
type RangeSetNDIterator struct {
// contains filtered or unexported fields
}
func NewRangeSetNDIterator ¶
func NewRangeSetNDIterator() *RangeSetNDIterator
func (*RangeSetNDIterator) FormatList ¶
func (i *RangeSetNDIterator) FormatList() []interface{}
func (*RangeSetNDIterator) IntValue ¶
func (i *RangeSetNDIterator) IntValue() []int
func (*RangeSetNDIterator) Len ¶
func (i *RangeSetNDIterator) Len() int
func (*RangeSetNDIterator) Next ¶
func (i *RangeSetNDIterator) Next() bool
func (*RangeSetNDIterator) Sort ¶
func (it *RangeSetNDIterator) Sort()
Click to show internal directories.
Click to hide internal directories.