radix

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Match

type Match struct {
	Handler http.Handler
	Route   string
	Slots   Slots
}

Match struct

type Slot

type Slot struct {
	Key   string
	Value string
}

Slot is a key value pair

type Slots

type Slots []*Slot

Slots is a list of key value pairs

type Tree

type Tree interface {
	Insert(route string, handler http.Handler) error
	Match(path string) (*Match, bool)
	String() string
}

Tree interface

func New

func New() Tree

New radix tree

Jump to

Keyboard shortcuts

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