func starthttpTreeMux() { mux := httptreemux.New() mux.GET("/hello", httpTreeMuxHandler) http.ListenAndServe(":"+strconv.Itoa(port), mux) }
func startHttpRouter() { mux := httprouter.New() mux.GET("/hello", httpRouterHandler) http.ListenAndServe(":"+strconv.Itoa(port), mux) }
func startGin() { gin.SetMode(gin.ReleaseMode) mux := gin.New() mux.GET("/hello", ginHandler) mux.Run(":" + strconv.Itoa(port)) }
func startFastHttpRouter() { mux := fasthttprouter.New() mux.GET("/hello", fastHttpHandler) fasthttp.ListenAndServe(":"+strconv.Itoa(port), mux.Handler) }
func startDenco() { mux := denco.NewMux() handler, _ := mux.Build([]denco.Handler{mux.GET("/hello", denco.HandlerFunc(dencoHandler))}) http.ListenAndServe(":"+strconv.Itoa(port), handler) }
func startAce() { mux := ace.New() mux.GET("/hello", aceHandler) mux.Run(":" + strconv.Itoa(port)) }