selector

package
v0.0.0-...-c8d14b3 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalid      = errors.New("invalid selector")
	ErrInvalidID    = errors.New("invalid ID")
	ErrInvalidClass = errors.New("invalid class")
	ErrInvalidAttr  = errors.New("invalid attribute")
)

Functions

This section is empty.

Types

type Error

type Error struct {
	Err      error
	Selector string
}

func (*Error) Error

func (e *Error) Error() string

type Result

type Result struct {
	TagName    string
	ID         string
	Classes    []string
	Attributes [][2]string
}

func Parse

func Parse(s string) (*Result, error)

func (*Result) String

func (r *Result) String() string

Jump to

Keyboard shortcuts

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