Discover Packages
github.com/mishnea/ant
internal
selectors
package
Version:
v0.0.0-...-bba8168
Opens a new window with list of versions in this module.
Published: Mar 24, 2022
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package selectors provides utilities to compile and cache CSS selectors.
The package provides a cache implementation that caches selectors in-memory
using a `sync.Map`, it also exposes the same methods to compile selectors
using a global cache.
Compile compiles the given selector.
It uses a global pre-initialized cache
of selectors.
Cache implementation.
NewCache returns a new cache.
Compile compiles the given selector.
The method returns an error if the selector is invalid
subsequent calls return the cached selector.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.