Categorygithub.com/manvalls/wit
modulepackage
0.0.0-20210504210402-61d06f5c32eb
Repository: https://github.com/manvalls/wit.git
Documentation: pkg.go.dev

# Functions

HTMLFromString builds an HTMLSource from a string.
HTMLFromStringFunc builds an HTMLSource from a string function.
No description provided by the author
S wraps a CSS selector in a Selector object.

# Variables

Body matches the body element.
Head matches the head element.

# Structs

AddClasses adds provided classes to matching elements.
All applies given delta to all matching elements.
Append appends the provided HTML to matching elements.
Clear empties matching elements.
No description provided by the author
First applies given delta to the first matching element.
FirstChild applies given delta to the first child element.
HTML sets the inner HTML of matching elements.
InsertAfter inserts the provided HTML after matching elements.
InsertBefore inserts the provided HTML before matching elements.
LastChild applies given delta to the last child element.
List holds a list of deltas.
NextSibling applies given delta to the next sibling.
Parent applies given delta to the parent element.
Prepend prepends the provided HTML to matching elements.
PrevSibling applies given delta to the previous sibling.
Remove removes matching elements.
Replace replaces matching elements with the provided content.
ReplaceAttr replaces the attributes of matching elements.
RmAttr removes provided attributes.
RmClasses removes provided classes from matching elements.
RmStyles removes provided CSS properties from matching elements.
Root applies given delta to the root of the document.
SetAttr sets provided attributes to provided values.
SetStyles sets provided attributes to provided values.

# Interfaces

Delta represents a page change.
HTMLSource represents an HTML source.
Selector wraps a CSS selector.