mirror of
https://github.com/labstack/echo.git
synced 2025-07-17 01:43:02 +02:00
adding godoc introduction
This commit is contained in:
31
echo.go
31
echo.go
@ -1,3 +1,34 @@
|
|||||||
|
/*
|
||||||
|
Package echo implements a fast and unfancy micro web framework for Go.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"net/http"
|
||||||
|
|
||||||
|
"github.com/labstack/echo"
|
||||||
|
mw "github.com/labstack/echo/middleware"
|
||||||
|
)
|
||||||
|
|
||||||
|
func hello(c *echo.Context) error {
|
||||||
|
return c.String(http.StatusOK, "Hello, World!\n")
|
||||||
|
}
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
e := echo.New()
|
||||||
|
|
||||||
|
e.Use(mw.Logger())
|
||||||
|
e.Use(mw.Recover())
|
||||||
|
|
||||||
|
e.Get("/", hello)
|
||||||
|
|
||||||
|
e.Run(":1323")
|
||||||
|
}
|
||||||
|
|
||||||
|
Learn more at https://labstack.com/echo
|
||||||
|
*/
|
||||||
package echo
|
package echo
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
Reference in New Issue
Block a user