camino

package module
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultFileMode = permUrwGrwOr
)

Variables

This section is empty.

Functions

func AllMatches added in v0.2.11

func AllMatches(doc *html.Node, delegate Matcher, limit int) []*html.Node

func GetAbs

func GetAbs(absolutePath AbsDir) string

func GetAttribute added in v0.2.11

func GetAttribute(node *html.Node, attribute string) string

func GetRel

func GetRel(relativePath RelDir, absolutePath AbsDir) string

func Match added in v0.2.11

func Match(doc *html.Node, delegate Matcher) *html.Node

func ReadOverrides added in v0.2.9

func ReadOverrides(path string) (map[string]string, error)

func Register

func Register(absolutePaths map[AbsDir]string, relativePaths map[RelDir]string, relativeAbsoluteParents map[RelDir][]AbsDir) error

func Sanitize

func Sanitize(s string) string

func TextContent added in v0.2.11

func TextContent(node *html.Node) string

Types

type AbsDir

type AbsDir int

type Matcher added in v0.2.11

type Matcher interface {
	Match(node *html.Node) bool
}

func AtomClassMatcher added in v0.2.11

func AtomClassMatcher(a atom.Atom, class string, equals bool) Matcher

func AtomIdMatcher added in v0.2.11

func AtomIdMatcher(a atom.Atom, id string) Matcher

func AtomMatcher added in v0.2.11

func AtomMatcher(a atom.Atom) Matcher

func SelectorMatcher added in v0.2.11

func SelectorMatcher(query string) Matcher

type RelDir

type RelDir int

Jump to

Keyboard shortcuts

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