package
1.0.1
Repository: https://github.com/zenazn/goji.git
Documentation: pkg.go.dev

# Packages

Package middleware provides several standard middleware implementations.
Package mutil contains various functions that are helpful when writing http middleware.

# Functions

GetMatch returns the Match stored in the Goji environment, or an empty Match if none exists (valid Matches always have a Handler property).
New creates a new Mux without any routes or middleware.
ParsePattern is used internally by Goji to parse route patterns.

# Constants

The key used to store route Matches in the Goji environment.
The key used to communicate to the NotFound handler what methods would have been allowed if they'd been provided.

# Structs

C is a request-local context object which is threaded through all compliant middleware layers and given to the final request handler.
Match is the type of routing matches.
Mux is an HTTP multiplexer, much like net/http's ServeMux.

# Interfaces

Handler is similar to net/http's http.Handler, but also accepts a Goji context object.
HandlerType is the type of Handlers and types that Goji internally converts to Handler.
MiddlewareType is the type of Goji middleware.
A Pattern determines whether or not a given request matches some criteria.
PatternType is the type denoting Patterns and types that Goji internally converts to Pattern (via the ParsePattern function).

# Type aliases

HandlerFunc is similar to net/http's http.HandlerFunc, but supports a context object.