Documentation ¶
Index ¶
- Constants
- func NodeName(s *Selection) string
- func OuterHtml(s *Selection) (string, error)
- func Render(w io.Writer, s *Selection) error
- type Document
- type Matcher
- type Selection
- func (s *Selection) Add(selector string) *Selection
- func (s *Selection) AddBack() *Selection
- func (s *Selection) AddBackFiltered(selector string) *Selection
- func (s *Selection) AddBackMatcher(m Matcher) *Selection
- func (s *Selection) AddClass(class ...string) *Selection
- func (s *Selection) AddMatcher(m Matcher) *Selection
- func (s *Selection) AddNodes(nodes ...*html.Node) *Selection
- func (s *Selection) AddSelection(sel *Selection) *Selection
- func (s *Selection) After(selector string) *Selection
- func (s *Selection) AfterHtml(htmlStr string) *Selection
- func (s *Selection) AfterMatcher(m Matcher) *Selection
- func (s *Selection) AfterNodes(ns ...*html.Node) *Selection
- func (s *Selection) AfterSelection(sel *Selection) *Selection
- func (s *Selection) AndSelf() *Selection
- func (s *Selection) Append(selector string) *Selection
- func (s *Selection) AppendHtml(htmlStr string) *Selection
- func (s *Selection) AppendMatcher(m Matcher) *Selection
- func (s *Selection) AppendNodes(ns ...*html.Node) *Selection
- func (s *Selection) AppendSelection(sel *Selection) *Selection
- func (s *Selection) Attr(attrName string) (val string, exists bool)
- func (s *Selection) AttrOr(attrName, defaultValue string) string
- func (s *Selection) Before(selector string) *Selection
- func (s *Selection) BeforeHtml(htmlStr string) *Selection
- func (s *Selection) BeforeMatcher(m Matcher) *Selection
- func (s *Selection) BeforeNodes(ns ...*html.Node) *Selection
- func (s *Selection) BeforeSelection(sel *Selection) *Selection
- func (s *Selection) Children() *Selection
- func (s *Selection) ChildrenFiltered(selector string) *Selection
- func (s *Selection) ChildrenMatcher(m Matcher) *Selection
- func (s *Selection) Clone() *Selection
- func (s *Selection) Closest(selector string) *Selection
- func (s *Selection) ClosestMatcher(m Matcher) *Selection
- func (s *Selection) ClosestNodes(nodes ...*html.Node) *Selection
- func (s *Selection) ClosestSelection(sel *Selection) *Selection
- func (s *Selection) Contains(n *html.Node) bool
- func (s *Selection) Contents() *Selection
- func (s *Selection) ContentsFiltered(selector string) *Selection
- func (s *Selection) ContentsMatcher(m Matcher) *Selection
- func (s *Selection) Each(f func(int, *Selection)) *Selection
- func (s *Selection) EachWithBreak(f func(int, *Selection) bool) *Selection
- func (s *Selection) Empty() *Selection
- func (s *Selection) End() *Selection
- func (s *Selection) Eq(index int) *Selection
- func (s *Selection) Filter(selector string) *Selection
- func (s *Selection) FilterFunction(f func(int, *Selection) bool) *Selection
- func (s *Selection) FilterMatcher(m Matcher) *Selection
- func (s *Selection) FilterNodes(nodes ...*html.Node) *Selection
- func (s *Selection) FilterSelection(sel *Selection) *Selection
- func (s *Selection) Find(selector string) *Selection
- func (s *Selection) FindMatcher(m Matcher) *Selection
- func (s *Selection) FindNodes(nodes ...*html.Node) *Selection
- func (s *Selection) FindSelection(sel *Selection) *Selection
- func (s *Selection) First() *Selection
- func (s *Selection) Get(index int) *html.Node
- func (s *Selection) Has(selector string) *Selection
- func (s *Selection) HasClass(class string) bool
- func (s *Selection) HasMatcher(m Matcher) *Selection
- func (s *Selection) HasNodes(nodes ...*html.Node) *Selection
- func (s *Selection) HasSelection(sel *Selection) *Selection
- func (s *Selection) Html() (ret string, e error)
- func (s *Selection) Index() int
- func (s *Selection) IndexMatcher(m Matcher) int
- func (s *Selection) IndexOfNode(node *html.Node) int
- func (s *Selection) IndexOfSelection(sel *Selection) int
- func (s *Selection) IndexSelector(selector string) int
- func (s *Selection) Intersection(sel *Selection) *Selection
- func (s *Selection) Is(selector string) bool
- func (s *Selection) IsFunction(f func(int, *Selection) bool) bool
- func (s *Selection) IsMatcher(m Matcher) bool
- func (s *Selection) IsNodes(nodes ...*html.Node) bool
- func (s *Selection) IsSelection(sel *Selection) bool
- func (s *Selection) Last() *Selection
- func (s *Selection) Length() int
- func (s *Selection) Map(f func(int, *Selection) string) (result []string)
- func (s *Selection) Next() *Selection
- func (s *Selection) NextAll() *Selection
- func (s *Selection) NextAllFiltered(selector string) *Selection
- func (s *Selection) NextAllMatcher(m Matcher) *Selection
- func (s *Selection) NextFiltered(selector string) *Selection
- func (s *Selection) NextFilteredUntil(filterSelector, untilSelector string) *Selection
- func (s *Selection) NextFilteredUntilMatcher(filter, until Matcher) *Selection
- func (s *Selection) NextFilteredUntilNodes(filterSelector string, nodes ...*html.Node) *Selection
- func (s *Selection) NextFilteredUntilSelection(filterSelector string, sel *Selection) *Selection
- func (s *Selection) NextMatcher(m Matcher) *Selection
- func (s *Selection) NextMatcherUntilNodes(filter Matcher, nodes ...*html.Node) *Selection
- func (s *Selection) NextMatcherUntilSelection(filter Matcher, sel *Selection) *Selection
- func (s *Selection) NextUntil(selector string) *Selection
- func (s *Selection) NextUntilMatcher(m Matcher) *Selection
- func (s *Selection) NextUntilNodes(nodes ...*html.Node) *Selection
- func (s *Selection) NextUntilSelection(sel *Selection) *Selection
- func (s *Selection) Not(selector string) *Selection
- func (s *Selection) NotFunction(f func(int, *Selection) bool) *Selection
- func (s *Selection) NotMatcher(m Matcher) *Selection
- func (s *Selection) NotNodes(nodes ...*html.Node) *Selection
- func (s *Selection) NotSelection(sel *Selection) *Selection
- func (s *Selection) Parent() *Selection
- func (s *Selection) ParentFiltered(selector string) *Selection
- func (s *Selection) ParentMatcher(m Matcher) *Selection
- func (s *Selection) Parents() *Selection
- func (s *Selection) ParentsFiltered(selector string) *Selection
- func (s *Selection) ParentsFilteredUntil(filterSelector, untilSelector string) *Selection
- func (s *Selection) ParentsFilteredUntilMatcher(filter, until Matcher) *Selection
- func (s *Selection) ParentsFilteredUntilNodes(filterSelector string, nodes ...*html.Node) *Selection
- func (s *Selection) ParentsFilteredUntilSelection(filterSelector string, sel *Selection) *Selection
- func (s *Selection) ParentsMatcher(m Matcher) *Selection
- func (s *Selection) ParentsMatcherUntilNodes(filter Matcher, nodes ...*html.Node) *Selection
- func (s *Selection) ParentsMatcherUntilSelection(filter Matcher, sel *Selection) *Selection
- func (s *Selection) ParentsUntil(selector string) *Selection
- func (s *Selection) ParentsUntilMatcher(m Matcher) *Selection
- func (s *Selection) ParentsUntilNodes(nodes ...*html.Node) *Selection
- func (s *Selection) ParentsUntilSelection(sel *Selection) *Selection
- func (s *Selection) Prepend(selector string) *Selection
- func (s *Selection) PrependHtml(htmlStr string) *Selection
- func (s *Selection) PrependMatcher(m Matcher) *Selection
- func (s *Selection) PrependNodes(ns ...*html.Node) *Selection
- func (s *Selection) PrependSelection(sel *Selection) *Selection
- func (s *Selection) Prev() *Selection
- func (s *Selection) PrevAll() *Selection
- func (s *Selection) PrevAllFiltered(selector string) *Selection
- func (s *Selection) PrevAllMatcher(m Matcher) *Selection
- func (s *Selection) PrevFiltered(selector string) *Selection
- func (s *Selection) PrevFilteredUntil(filterSelector, untilSelector string) *Selection
- func (s *Selection) PrevFilteredUntilMatcher(filter, until Matcher) *Selection
- func (s *Selection) PrevFilteredUntilNodes(filterSelector string, nodes ...*html.Node) *Selection
- func (s *Selection) PrevFilteredUntilSelection(filterSelector string, sel *Selection) *Selection
- func (s *Selection) PrevMatcher(m Matcher) *Selection
- func (s *Selection) PrevMatcherUntilNodes(filter Matcher, nodes ...*html.Node) *Selection
- func (s *Selection) PrevMatcherUntilSelection(filter Matcher, sel *Selection) *Selection
- func (s *Selection) PrevUntil(selector string) *Selection
- func (s *Selection) PrevUntilMatcher(m Matcher) *Selection
- func (s *Selection) PrevUntilNodes(nodes ...*html.Node) *Selection
- func (s *Selection) PrevUntilSelection(sel *Selection) *Selection
- func (s *Selection) Remove() *Selection
- func (s *Selection) RemoveAttr(attrName string) *Selection
- func (s *Selection) RemoveClass(class ...string) *Selection
- func (s *Selection) RemoveFiltered(selector string) *Selection
- func (s *Selection) RemoveMatcher(m Matcher) *Selection
- func (s *Selection) ReplaceWith(selector string) *Selection
- func (s *Selection) ReplaceWithHtml(htmlStr string) *Selection
- func (s *Selection) ReplaceWithMatcher(m Matcher) *Selection
- func (s *Selection) ReplaceWithNodes(ns ...*html.Node) *Selection
- func (s *Selection) ReplaceWithSelection(sel *Selection) *Selection
- func (s *Selection) SetAttr(attrName, val string) *Selection
- func (s *Selection) SetHtml(htmlStr string) *Selection
- func (s *Selection) SetText(text string) *Selection
- func (s *Selection) Siblings() *Selection
- func (s *Selection) SiblingsFiltered(selector string) *Selection
- func (s *Selection) SiblingsMatcher(m Matcher) *Selection
- func (s *Selection) Size() int
- func (s *Selection) Slice(start, end int) *Selection
- func (s *Selection) Text() string
- func (s *Selection) ToggleClass(class ...string) *Selection
- func (s *Selection) Union(sel *Selection) *Selection
- func (s *Selection) Unwrap() *Selection
- func (s *Selection) Wrap(selector string) *Selection
- func (s *Selection) WrapAll(selector string) *Selection
- func (s *Selection) WrapAllHtml(htmlStr string) *Selection
- func (s *Selection) WrapAllMatcher(m Matcher) *Selection
- func (s *Selection) WrapAllNode(n *html.Node) *Selection
- func (s *Selection) WrapAllSelection(sel *Selection) *Selection
- func (s *Selection) WrapHtml(htmlStr string) *Selection
- func (s *Selection) WrapInner(selector string) *Selection
- func (s *Selection) WrapInnerHtml(htmlStr string) *Selection
- func (s *Selection) WrapInnerMatcher(m Matcher) *Selection
- func (s *Selection) WrapInnerNode(n *html.Node) *Selection
- func (s *Selection) WrapInnerSelection(sel *Selection) *Selection
- func (s *Selection) WrapMatcher(m Matcher) *Selection
- func (s *Selection) WrapNode(n *html.Node) *Selection
- func (s *Selection) WrapSelection(sel *Selection) *Selection
Constants ¶
View Source
const (
ToEnd = maxInt
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Matcher ¶
type Matcher interface { Match(*html.Node) bool MatchAll(*html.Node) []*html.Node Filter([]*html.Node) []*html.Node }
func SingleMatcher ¶
type Selection ¶
func (*Selection) AddBackFiltered ¶
func (*Selection) AddBackMatcher ¶
func (*Selection) AddMatcher ¶
func (*Selection) AddSelection ¶
func (*Selection) AfterMatcher ¶
func (*Selection) AfterSelection ¶
func (*Selection) AppendHtml ¶
func (*Selection) AppendMatcher ¶
func (*Selection) AppendSelection ¶
func (*Selection) BeforeHtml ¶
func (*Selection) BeforeMatcher ¶
func (*Selection) BeforeSelection ¶
func (*Selection) ChildrenFiltered ¶
func (*Selection) ChildrenMatcher ¶
func (*Selection) ClosestMatcher ¶
func (*Selection) ClosestSelection ¶
func (*Selection) ContentsFiltered ¶
func (*Selection) ContentsMatcher ¶
func (*Selection) EachWithBreak ¶
func (*Selection) FilterFunction ¶
func (*Selection) FilterMatcher ¶
func (*Selection) FilterSelection ¶
func (*Selection) FindMatcher ¶
func (*Selection) FindSelection ¶
func (*Selection) HasMatcher ¶
func (*Selection) HasSelection ¶
func (*Selection) IndexMatcher ¶
func (*Selection) IndexOfSelection ¶
func (*Selection) IndexSelector ¶
func (*Selection) Intersection ¶
func (*Selection) IsSelection ¶
func (*Selection) NextAllFiltered ¶
func (*Selection) NextAllMatcher ¶
func (*Selection) NextFiltered ¶
func (*Selection) NextFilteredUntil ¶
func (*Selection) NextFilteredUntilMatcher ¶
func (*Selection) NextFilteredUntilNodes ¶
func (*Selection) NextFilteredUntilSelection ¶
func (*Selection) NextMatcher ¶
func (*Selection) NextMatcherUntilNodes ¶
func (*Selection) NextMatcherUntilSelection ¶
func (*Selection) NextUntilMatcher ¶
func (*Selection) NextUntilNodes ¶
func (*Selection) NextUntilSelection ¶
func (*Selection) NotFunction ¶
func (*Selection) NotMatcher ¶
func (*Selection) NotSelection ¶
func (*Selection) ParentFiltered ¶
func (*Selection) ParentMatcher ¶
func (*Selection) ParentsFiltered ¶
func (*Selection) ParentsFilteredUntil ¶
func (*Selection) ParentsFilteredUntilMatcher ¶
func (*Selection) ParentsFilteredUntilNodes ¶
func (*Selection) ParentsFilteredUntilSelection ¶
func (*Selection) ParentsMatcher ¶
func (*Selection) ParentsMatcherUntilNodes ¶
func (*Selection) ParentsMatcherUntilSelection ¶
func (*Selection) ParentsUntil ¶
func (*Selection) ParentsUntilMatcher ¶
func (*Selection) ParentsUntilNodes ¶
func (*Selection) ParentsUntilSelection ¶
func (*Selection) PrependHtml ¶
func (*Selection) PrependMatcher ¶
func (*Selection) PrependSelection ¶
func (*Selection) PrevAllFiltered ¶
func (*Selection) PrevAllMatcher ¶
func (*Selection) PrevFiltered ¶
func (*Selection) PrevFilteredUntil ¶
func (*Selection) PrevFilteredUntilMatcher ¶
func (*Selection) PrevFilteredUntilNodes ¶
func (*Selection) PrevFilteredUntilSelection ¶
func (*Selection) PrevMatcher ¶
func (*Selection) PrevMatcherUntilNodes ¶
func (*Selection) PrevMatcherUntilSelection ¶
func (*Selection) PrevUntilMatcher ¶
func (*Selection) PrevUntilNodes ¶
func (*Selection) PrevUntilSelection ¶
func (*Selection) RemoveAttr ¶
func (*Selection) RemoveClass ¶
func (*Selection) RemoveFiltered ¶
func (*Selection) RemoveMatcher ¶
func (*Selection) ReplaceWith ¶
func (*Selection) ReplaceWithHtml ¶
func (*Selection) ReplaceWithMatcher ¶
func (*Selection) ReplaceWithNodes ¶
func (*Selection) ReplaceWithSelection ¶
func (*Selection) SiblingsFiltered ¶
func (*Selection) SiblingsMatcher ¶
func (*Selection) ToggleClass ¶
func (*Selection) WrapAllHtml ¶
func (*Selection) WrapAllMatcher ¶
func (*Selection) WrapAllSelection ¶
func (*Selection) WrapInnerHtml ¶
func (*Selection) WrapInnerMatcher ¶
func (*Selection) WrapInnerSelection ¶
func (*Selection) WrapMatcher ¶
func (*Selection) WrapSelection ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.