rute

package module
v0.0.0-...-598449d Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StrSlc

func StrSlc(slc []byte) string

Types

type KV

type KV[V any] struct {
	*swiss.Map[string, *KV[V]]
	// contains filtered or unexported fields
}

type Tr

type Tr[V any] struct {
	KV[V]

	sync.Pool
	// contains filtered or unexported fields
}

func (*Tr[V]) Handle

func (tr *Tr[V]) Handle(k string, v V)

func (*Tr[V]) Lookup

func (tr *Tr[V]) Lookup(k []byte) (v V, prms_ any, uv UserValue)

type UserValue

type UserValue struct {
	Params   [][]byte
	Wildcard []byte
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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