Skip to content

Instantly share code, notes, and snippets.

@mewben
Created July 27, 2016 05:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mewben/dc39e0a5010cd372b5d8800ca9c6e6c9 to your computer and use it in GitHub Desktop.
Save mewben/dc39e0a5010cd372b5d8800ca9c6e6c9 to your computer and use it in GitHub Desktop.
package main
import (
"net/http"
"github.com/labstack/echo"
"github.com/labstack/echo/engine/fasthttp"
)
func main() {
e := echo.New()
e.GET("/", func(c echo.Context) error {
res := []string{"Hello", "World"}
return c.JSON(http.StatusOK, res)
})
e.Run(fasthttp.New(":1323"))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment