selector

package
v0.0.0-...-96fb1ba Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSS

type CSS string

func (*CSS) TypeName

func (t *CSS) TypeName() string

type CSSValue

type CSSValue string

func (*CSSValue) Value

func (t *CSSValue) Value() string

type Selector

type Selector struct {
	Type  SelectorType  `json:"type"`
	Value SelectorValue `json:"value"`
}

func NewSelector

func NewSelector(t string, v string) *Selector

func (*Selector) UnmarshalJSON

func (s *Selector) UnmarshalJSON(bytes []byte) error

type SelectorType

type SelectorType interface {
	TypeName() string
}

type SelectorValue

type SelectorValue interface {
	Value() string
}

type XPath

type XPath string

FIX ME If xpath is specified, it may not work well. Therefore, it is recommended to work with css selector.

func (*XPath) TypeName

func (t *XPath) TypeName() string

type XPathValue

type XPathValue string

func (*XPathValue) Value

func (t *XPathValue) Value() string

Jump to

Keyboard shortcuts

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