A pastebin for markdown pages.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package main |
|
|
|
import ( |
|
"net/http" |
|
|
|
"github.com/labstack/echo" |
|
) |
|
|
|
func main() { |
|
e := echo.New() |
|
|
|
e.Static("/", "assets/public") |
|
|
|
e.GET("/", func(c echo.Context) error { |
|
return c.String(http.StatusOK, "Hello, World!") |
|
}) |
|
e.Logger.Fatal(e.Start(":3000")) |
|
}
|
|
|