Branch | Status | Coverage |
---|---|---|
master | ||
develop |
HTTP Server Router with middleware
import "github.com/euskadi31/go-server"
router := server.NewRouter()
router.EnableMetrics()
router.EnableCors()
router.EnableHealthCheck()
router.AddHealthCheck("my-health-check", NewMyHealthCheck())
router.Use(MyMiddleWare())
router.AddController(MyController())
panic(http.ListenAndServe(":1337", router))
go-server is licensed under the MIT license.