package
0.0.0-20241124084809-9f5fe8e9735c
Repository: https://github.com/ztimes2/glassy.git
Documentation: pkg.go.dev

# Functions

Attribute looks up for an attribute of the given node.
AttributeContains checks if the given node's attribute contains the given value.
AttributeEquals checks if the given node's attribute equals to the given value.
ClassContains checks if the given node's class attribute contains the given value.
ClassEquals checks if the given node's class attribute equals to the given value.
Find walks through the given node and all its childen and returns those that match the given conditions.
FindOne walks through the given node and all its childen and returns the first one that matches the given conditions.
ForEach walks through the given node and all of its children, and executes the given statement for each of them.
IDEquals checks if the given node's id attribute equals to the given value.
WithAttribute returns FindCondition that checks if a node has the given attribute.
WithAttributeEqual returns FindCondition that checks if a node's attribute equals to the given value.
WithClassContaining returns FindCondition that checks if a node's class attribute contains the given values.
WithClassEqual returns FindCondition that checks if a node's class attribute equals to the given value.
WithIDEqual returns FindCondition that checks if a node's id attribute equals to the given value.

# Constants

AttributeAlternateImageText is the key of the alt attribute.
AttributeClass is the key of the class attribute.
AttributeID is the key of the id attribute.
AttributeTransform is the key of the transform attribute.

# Type aliases

FindCondition is a function that is used for describing a match condition when finding nodes.