register

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("entry not found")

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Handler http.Handler
	// contains filtered or unexported fields
}

type Register

type Register []Entry

func NewRegister

func NewRegister() Register

func (Register) Add

func (r Register) Add(pattern string, handler http.Handler) Register

func (Register) Find

func (r Register) Find(pattern string) (Entry, p.Params, error)

Jump to

Keyboard shortcuts

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