Top 3.9% forks on proxy.golang.org
proxy.golang.org : github.com/data-dog/fastroute
Package fastroute is static, composable high performance HTTP request router. A trivial example is: The router can be composed of fastroute.Router interface, which shares the same http.Handler interface. This package provides only this orthogonal interface as a building block together with path pattern matching in order to construct dynamic routes having named Params available from http.Request at zero allocation cost. Path parameters can be extracted from request this way: The registered path, against which the router matches incoming requests, can contain two types of parameters: Named parameters are dynamic path segments. They match anything until the next '/' or the path end: Catch-all parameters match anything until the path end, including the directory index (the '/' before the catch-all). Since they match anything until the end, catch-all parameters must always be the final path element.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/data-dog/fastroute
Keywords:
go
, golang
, http
, router
License: BSD-3-Clause
Latest release: over 7 years ago
First release: over 7 years ago
Namespace: github.com/data-dog
Stars: 135 on GitHub
Forks: 9 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 19 days ago