syntax

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compile

func Compile(name, s string, fns CustomFns) (pattern.Pattern, error)

func MustCompile

func MustCompile(name, s string, fns CustomFns) pattern.Pattern

Types

type CustomFns

type CustomFns struct {
	Cap     func(p pattern.Pattern, group string) pattern.Pattern
	Words   func(words ...string) pattern.Pattern
	Include func(lang string) pattern.Pattern
	Ref     func(p pattern.Pattern, group string) pattern.Pattern
	Back    func(group string) pattern.Pattern
	Imports map[string]pattern.Pattern
}

Jump to

Keyboard shortcuts

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