radix

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 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