Skip to content

Instantly share code, notes, and snippets.

@gufranmirza gufranmirza/main.go
Created Jun 21, 2019

Embed
What would you like to do?
package main
import (
"net/http"
"github.com/labstack/echo"
)
func main() {
e := echo.New()
e.GET("/", func(c echo.Context) error {
return c.String(http.StatusOK, "Hello, World!")
})
h := &handler{}
e.POST("/login", h.login)
e.Logger.Fatal(e.Start(":1323"))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.