proxy.golang.org : github.com/adnaan/routes
Package routes a simple http routing API for the Go programming language, compatible with the standard http.ListenAndServe function. Create a new route multiplexer: Define a simple route with a given method (ie Get, Put, Post ...), path and http.HandleFunc. Define a route with restful parameters in the path: The parameters are parsed from the URL, and appended to the Request URL's query parameters. More control over the route's parameter matching is possible by providing a custom regular expression: To start the web server, use the standard http.ListenAndServe function, and provide the route multiplexer:
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/adnaan/routes
License: MIT
Latest release: almost 10 years ago
First release: almost 10 years ago
Namespace: github.com/adnaan
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 7 days ago