classes

package
v0.29.3 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Match

func Match(needles []string, classes []string) bool

func MatchFile

func MatchFile(needles []string, source string, log Logger) bool

MatchFile classes on a AND basis

func ReadClasses

func ReadClasses(file string) ([]string, error)

ReadClasses reads a given file and attempts to parse it as a typical classes file

Types

type Logger

type Logger interface {
	Warnf(format string, args ...any)
}

Logger provides logging facilities

Jump to

Keyboard shortcuts

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