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.
19 lines
263 B
19 lines
263 B
|
8 years ago
|
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"))
|
||
|
|
}
|