parser

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scheme

type Scheme []*matcher

Represents an URI scheme

func Build

func Build(s string) (*Scheme, error)

Build builds an URI scheme from a pattern string

func (Scheme) GetAllMatch

func (s Scheme) GetAllMatch() [][]string

GetAllMatch returns all the indexed match (excluding string matchers)

func (Scheme) GetMatch

func (s Scheme) GetMatch(n uint8) ([]string, error)

GetMatch returns the indexed match (excluding string matchers)

func (Scheme) Match

func (s Scheme) Match(str string) bool

Match returns if the given URI is matched by the scheme

Jump to

Keyboard shortcuts

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