ngamux
Simple HTTP router for Go
About ngamux
ngamux
Simple HTTP router for Go
Installation
Run this command with correctly configured Go toolchain.
go get github.com/ngamux/ngamux
Examples
package main
import(
"net/http"
"github.com/ngamux/ngamux"
)
func main() {
mux := ngamux.New()
mux.Get("/", func(rw http.ResponseWriter, r *http.Request) error {
return ngamux.Res(rw).
Status(http.StatusOK).
Json(ngamux.Map{
"message": "welcome!",
})
})
http.ListenAndServe(":8080", mux)
}
See more examples!
Provided Middlewares
License
This project is licensed under the Mozilla Public License 2.0.
Contributors
Thanks to all contributors!
Frequently Asked Questions
What is ngamux?
ngamux is a Web Frameworks library for the Go programming language. Simple HTTP router for Go
How do I install ngamux?
Install ngamux with the Go module system using `go get ngamux/ngamux`. Check the repository for the current installation instructions.
What category does ngamux belong to?
ngamux is listed under Web Frameworks, specifically Routers.