patterns

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Patterns

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

func Load

func Load(filename string, src io.Reader) (*Patterns, error)

func (*Patterns) Match

func (p *Patterns) Match(url *url.URL) (id, normalized string, err error)

func (*Patterns) MatchAll

func (p *Patterns) MatchAll(url *url.URL) (map[string]string, error)

func (*Patterns) Test

func (p *Patterns) Test(sys *sys.IO) (map[string]string, error)

func (*Patterns) TestCases

func (p *Patterns) TestCases() map[string]string

Jump to

Keyboard shortcuts

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