02-routing/

directory
v14.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: BSD-3-Clause

Directories

Path Synopsis
Custom path macros: a new constraint on a built-in parameter type, and a parameter type of your own.
Custom path macros: a new constraint on a built-in parameter type, and a parameter type of your own.
Route groups: child routers that inherit a path prefix and middleware.
Route groups: child routers that inherit a path prefix and middleware.
Path parameters: typed macros in the route pattern, typed accessors in the handler.
Path parameters: typed macros in the route pattern, typed accessors in the handler.
Routing basics: one function per HTTP method, and the Context helpers that carry the status code and the error branch for you.
Routing basics: one function per HTTP method, and the Context helpers that carry the status code and the error branch for you.
Subdomain routing: a router bound to a host label instead of a path prefix.
Subdomain routing: a router bound to a host label instead of a path prefix.
Wrapping the router: raw net/http code that runs before any route matching.
Wrapping the router: raw net/http code that runs before any route matching.

Jump to

Keyboard shortcuts

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