type github.com/andybalholm/cascadia.attrSelector
17 uses
github.com/andybalholm/cascadia (current package)
parser.go#L346: func (p *parser) parseAttributeSelector() (attrSelector, error) {
parser.go#L348: return attrSelector{}, fmt.Errorf("expected attribute selector ([attribute]), found EOF instead")
parser.go#L351: return attrSelector{}, fmt.Errorf("expected attribute selector ([attribute]), found '%c' instead", p.s[p.i])
parser.go#L358: return attrSelector{}, err
parser.go#L364: return attrSelector{}, errors.New("unexpected EOF in attribute selector")
parser.go#L369: return attrSelector{key: key, operation: ""}, nil
parser.go#L373: return attrSelector{}, errors.New("unexpected EOF in attribute selector")
parser.go#L380: return attrSelector{}, fmt.Errorf(`expected equality operator, found "%s" instead`, op)
parser.go#L386: return attrSelector{}, errors.New("unexpected EOF in attribute selector")
parser.go#L401: return attrSelector{}, err
parser.go#L406: return attrSelector{}, errors.New("unexpected EOF in attribute selector")
parser.go#L409: return attrSelector{}, fmt.Errorf("expected ']', found '%c' instead", p.s[p.i])
parser.go#L415: return attrSelector{key: key, val: val, operation: op, regexp: rx}, nil
parser.go#L417: return attrSelector{}, fmt.Errorf("attribute operator %q is not supported", op)
selector.go#L215: type attrSelector struct {
selector.go#L221: func (t attrSelector) Match(n *html.Node) bool {
selector.go#L351: func (c attrSelector) Specificity() Specificity {
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |