mirror of
https://github.com/labstack/echo.git
synced 2025-03-17 21:08:05 +02:00
adding godoc introduction
This commit is contained in:
parent
5940691448
commit
ad46da8f77
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
|
||||
|
||||
import (
|
||||
|
Loading…
x
Reference in New Issue
Block a user