Documentation ¶
Overview ¶
Package pathpattern GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Index ¶
- func NormalizePath(p string) string
- type Matcher
- type NamedSegment
- type Node
- type PathEncoder
- type PathValuesGetter
- type Pattern
- type Segment
- type Segments
- func (ss Segments) Chunk() iter.Seq[Segments]
- func (ss Segments) Encode(params map[string]string) string
- func (ss Segments) MatchTo(setter ValueSetter, pathname string) (string, bool)
- func (ss Segments) PathValues(pathname string) (Values, error)
- func (Segments) RuntimeDoc(names ...string) ([]string, bool)
- func (ss Segments) String() string
- type Tree
- type ValueSetter
- type Values
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizePath ¶
Types ¶
type Matcher ¶
type Matcher interface {
MatchTo(setter ValueSetter, pathname string) (string, bool)
}
type NamedSegment ¶
type PathEncoder ¶
type PathValuesGetter ¶
type Pattern ¶
type Pattern interface { PathEncoder PathValuesGetter }
type Segments ¶
type Segments []Segment
type Tree ¶
type Tree[N Node] struct { // contains filtered or unexported fields }
func (*Tree) PathSegments ¶
func (g *Tree) PathSegments() Segments
type ValueSetter ¶
Click to show internal directories.
Click to hide internal directories.