classes

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2020 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Match

func Match(needles []string, classes []string, log Logger) 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 ...interface{})
}

Logger provides logging facilities

Jump to

Keyboard shortcuts

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