Created
July 27, 2016 05:49
-
-
Save mewben/dc39e0a5010cd372b5d8800ca9c6e6c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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