From ad46da8f772de3a45b8f30fb3df5bf51080893dd Mon Sep 17 00:00:00 2001 From: Chase Hutchins Date: Fri, 29 Jan 2016 06:42:28 -0800 Subject: [PATCH] adding godoc introduction --- echo.go | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/echo.go b/echo.go index b67e5449..1f21863b 100644 --- a/echo.go +++ b/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 (