cssrule

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: BSD-3-Clause, GPL-3.0, MIT, + 1 more Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RuleRegex = regexp.MustCompile(`.*#@?\$#.+`)
)

Functions

This section is empty.

Types

type Injector

type Injector struct {
	// contains filtered or unexported fields
}

func NewInjector

func NewInjector() *Injector

func (*Injector) AddRule

func (inj *Injector) AddRule(rule string) error

func (*Injector) GetAsset

func (inj *Injector) GetAsset(hostname string) []byte

GetAsset returns the CSS asset for the given hostname.

Jump to

Keyboard shortcuts

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