query

package
v0.0.0-...-e077670 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Selector

type Selector struct {
	// contains filtered or unexported fields
}

func NewSelectorFromBytes

func NewSelectorFromBytes(b []byte) (selector *Selector, err error)

NewSelectorFromBytes selector from bytes

func NewSelectorFromFile

func NewSelectorFromFile(f string) (selector *Selector, err error)

NewSelectorFromFile selector from file

func NewSelectorFromReader

func NewSelectorFromReader(i io.Reader) (selector *Selector, err error)

NewSelectorFromReader selector from reader

func NewSelectorFromStr

func NewSelectorFromStr(s string) (selector *Selector, err error)

NewSelectorFromStr selector from string

func (*Selector) FindIntMany

func (s *Selector) FindIntMany(css string) (list []int)

FindIntMany find int list

func (*Selector) FindIntOne

func (s *Selector) FindIntOne(css string) (i int)

FindIntOne find int

func (*Selector) FindIntOneOr

func (s *Selector) FindIntOneOr(css string, or int) (i int)

FindIntOneOr find one int, will return a default int if you find nothing

func (*Selector) FindNodeMany

func (s *Selector) FindNodeMany(css string) (selectors []*Selector)

FindNodeMany find nodes

func (*Selector) FindNodeOne

func (s *Selector) FindNodeOne(css string) (selector *Selector)

FindNodeOne find node or nil

func (*Selector) FindNodeOneOr

func (s *Selector) FindNodeOneOr(css string) (selector *Selector)

FindNodeOneOr find node

func (*Selector) FindStrMany

func (s *Selector) FindStrMany(css string) (list []string)

FindStrMany find a string list

func (*Selector) FindStrOne

func (s *Selector) FindStrOne(css string) (str string)

FindStrOne find a string

func (*Selector) FindStrOneOr

func (s *Selector) FindStrOneOr(css string, or string) (str string)

FindStrOneOr find a string, will return a default string if you find nothing

func (*Selector) GetNode

func (s *Selector) GetNode() (node *goquery.Selection)

GetNode get node

func (*Selector) OutHtml

func (s *Selector) OutHtml(self bool) (str string)

OutHtml return html

func (*Selector) Remove

func (s *Selector) Remove(css string) *Selector

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL