Documentation
¶
Index ¶
- Variables
- func CleanPath(p string) string
- func Normalize(p string) string
- func Prefix(segments Segments) string
- func ResolveFromTag(t reflect.Type) (string, string)
- func SplitPath(p string) []string
- type Encoder
- type Matcher
- type NamedSegment
- type Node
- type OrderedMap
- type Segment
- type Segments
- type Tree
- type ValueGetter
- type Values
- type ValuesDescriber
- type ValuesModifier
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WithParamGetter = contextx.With[tCtxValueGetter, ValueGetter] CarryParamGetter = contextx.Carry[tCtxValueGetter, ValueGetter] )
Functions ¶
Types ¶
type Matcher ¶
type Matcher interface {
MatchTo(m ValuesModifier, uri string) (string, bool)
}
func NewMatcher ¶
type NamedSegment ¶
type OrderedMap ¶
type OrderedMap[K comparable, V any] struct { // contains filtered or unexported fields }
func (*OrderedMap[K, V]) Add ¶
func (m *OrderedMap[K, V]) Add(k K, v V)
func (*OrderedMap[K, V]) Get ¶
func (m *OrderedMap[K, V]) Get(k K) (V, bool)
func (*OrderedMap[K, V]) Keys ¶
func (m *OrderedMap[K, V]) Keys() iter.Seq[K]
func (*OrderedMap[K, V]) Len ¶
func (m *OrderedMap[K, V]) Len() int
func (*OrderedMap[K, V]) Values ¶
func (m *OrderedMap[K, V]) Values() iter.Seq[V]
type Tree ¶
type Tree[N Node] struct { // contains filtered or unexported fields }
func (*Tree) PathSegments ¶
func (g *Tree) PathSegments() Segments
type ValueGetter ¶
func ParamGetterFrom ¶
func ParamGetterFrom(ctx context.Context) ValueGetter
type Values ¶
func (Values) SetPathValue ¶
type ValuesDescriber ¶
type ValuesModifier ¶
type ValuesModifier interface {
SetPathValue(key, val string)
}
Click to show internal directories.
Click to hide internal directories.