multipattern

package
v0.0.0-...-4ee4993 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 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 Multipattern

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

func New

func New() *Multipattern

func (*Multipattern) Define

func (mp *Multipattern) Define(name string, subexpr string) *Multipattern

func (*Multipattern) Dispatch

func (mp *Multipattern) Dispatch(needle string, context interface{}) interface{}

func (*Multipattern) On

func (mp *Multipattern) On(pattern string, callback func(parts []string, context interface{}) interface{}) *Multipattern

Jump to

Keyboard shortcuts

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