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
Click to show internal directories.
Click to hide internal directories.