Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllOf ¶
type AllOf []Match
AllOf is a Match which checks that the element matches all of the sub-matches.
type AnyOf ¶
type AnyOf []Match
AnyOf is a Match which checks that an element matches at least one of the sub-matches.
type AttrMatch ¶
type AttrMatch struct { Attribute string Value string Prefix string Suffix string Regex *regexp.Regexp }
AttrMatch is a match which checks an attribute against a set of constraints.
type InsertAttr ¶
InsertAttr is an Action which inserts an attribute into the element.
func (*InsertAttr) Serialize ¶
func (i *InsertAttr) Serialize() map[string]interface{}
type Node ¶
Node is a configuration node which may be applied to a xml etree.
type Not ¶
type Not struct {
Child Match
}
Not is a Match which checks that the element does not match the child match.
type Number ¶
type Number struct { Attribute string Mult float64 Add float64 Min float64 Max float64 Precision int If Match }
Number represents a numeric operation.
This combines a multiply, add, and clamp operation all in one. It also contains a precision value used for formatting values back to strings.
type OneOf ¶
type OneOf []Match
OneOf is a Match which checks that an element matches exactly one of the sub-matches.
type RemoveAttr ¶
RemoveAttr is an Action which removes an attribute from the element.
func (*RemoveAttr) Serialize ¶
func (r *RemoveAttr) Serialize() map[string]interface{}