Versions in this module Expand all Collapse all v0 v0.0.12 Sep 24, 2025 v0.0.11 Apr 29, 2025 v0.0.10 Nov 27, 2024 v0.0.9 Sep 25, 2024 Changes in this version + const DEREFFUNC v0.0.8 Sep 23, 2024 Changes in this version + const CURRENTFUNC + const TEXTFUNC v0.0.7 Sep 17, 2024 v0.0.6 Sep 2, 2024 v0.0.5 Feb 13, 2024 v0.0.4 Feb 7, 2024 Changes in this version + const AND + const AXISNAME + const DBLCOLON + const DBLSLASH + const DIV + const DOTDOT + const DontStripPrefix + const EOF + const EQ + const ERR + const FUNC + const GE + const GT + const LE + const LITERAL + const LT + const MOD + const NAMETEST + const NE + const NODETYPE + const NUM + const OR + const StripPrefix + var AllCfgChildren = NewXFilterConfigOnly(xml.Name{ ... }) + var AllChildren = NewXFilterFullTree(xml.Name{ ... }) + func GetStringValue(nodes []XpathNode) string + func GetStringValues(nodes []XpathNode, addEmptyStr bool) []string + func GetTokenName(token int) string + func MatchFilter(filter XFilter, target XTarget) bool + func NodeString(xNode XpathNode) string + func NodesEqual(n1, n2 XpathNode) error + func NodesetsEqual(ns1, ns2 []XpathNode) error + func PrintTree(startNode XpathNode) + func ValidateTree(root XpathNode) error + type MatchType int + const ConfigOnly + const FullTree + const OpdOnly + type NodeRef struct + func NewNodeRef(entries int) NodeRef + func (yp *NodeRef) AddElem(name string, keys []NodeRefKey) + func (yp NodeRef) String() string + func (yp1 NodeRef) EqualTo(yp2 NodeRef) bool + type NodeRefElem struct + func (ype1 NodeRefElem) EqualTo(ype2 NodeRefElem) bool + type NodeRefKey struct + func NewNodeRefKey(name, value string) (retKey NodeRefKey) + func (ypk1 NodeRefKey) EqualTo(ypk2 NodeRefKey) bool + type PathType []string + func GetAbsPath(expr string, curPath PathType) PathType + func NewPathType(path string) PathType + func (p PathType) SpacedString() string + func (p PathType) String() (pathStr string) + func (p1 PathType) EqualTo(p2 PathType) bool + type SortSpec bool + const Sorted + const Unsorted + type TargetType int + const ConfigTarget + const NotConfigOrOpdTarget + const OpdTarget + type WarnType int + const CompilerError + const ConfigdMustCompilerError + const DoesntExist + const MissingOrWrongPrefix + const MustOnNPContWithNPChild + const MustOnNPContainer + const RefNPContainer + const ValidPath + func (w WarnType) String() string + type Warning struct + func NewWarning(warning WarnType, startNode, xpathStmt, xpathLoc, testPath, debugStr string) Warning + func RemoveNPContainerWarnings(warns []Warning) []Warning + func (w Warning) GetType() WarnType + func (w Warning) GetUniqueString(stripPrefix bool) string + func (w Warning) Match(expWarn Warning) error + func (w Warning) MatchDebugContains(expWarn Warning) error + func (w Warning) String() string + type XFilter struct + func NewXFilter(name xml.Name, matchOn MatchType) XFilter + func NewXFilterConfigOnly(name xml.Name) XFilter + func NewXFilterFullTree(name xml.Name) XFilter + func (xf XFilter) MatchConfigOnly() bool + func (xf XFilter) Name() xml.Name + type XTarget struct + func NewXConfigTarget(name xml.Name) XTarget + func NewXNonConfigOrOpdTarget(name xml.Name) XTarget + func NewXTarget(name xml.Name, targetType TargetType) XTarget + func (t XTarget) IsConfig() bool + func (t XTarget) IsOpd() bool + func (t XTarget) Name() xml.Name + type XpathNode interface + XChildren func(filter XFilter, sortSpec SortSpec) []XpathNode + XIsEphemeral func() bool + XIsLeaf func() bool + XIsLeafList func() bool + XIsNonPresCont func() bool + XListKeyMatches func(key xml.Name, val string) bool + XListKeys func() []NodeRefKey + XName func() string + XParent func() XpathNode + XPath func() PathType + XRoot func() XpathNode + XValue func() string + func FilterNodeset(ns []XpathNode, key xml.Name, leafValue string) (retNs []XpathNode, debugLog string) + func FindNode(startNode XpathNode, pathToFind NodeRef) XpathNode + func RemoveDuplicateNodes(nodes []XpathNode) []XpathNode + func WalkTree(node XpathNode, workFn worker, index int) (retNode XpathNode, finished bool, retErr error)