1
0
mirror of https://github.com/labstack/echo.git synced 2025-01-26 03:20:08 +02:00

Updated README

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana 2015-06-03 09:20:32 -07:00
parent a6260b39a0
commit 4a27e36a73
2 changed files with 53 additions and 48 deletions

View File

@ -3,30 +3,32 @@ Echo is a fast HTTP router (zero memory allocation) and micro web framework in G
## Features ## Features
- Fast HTTP router which smartly prioritize routes. - Fast HTTP router which smartly prioritize routes
- Extensible middleware/handler, supports: - Extensible middleware, supports:
- Middleware - `echo.MiddlewareFunc`
- `echo.MiddlewareFunc` - `func(echo.HandlerFunc) echo.HandlerFunc`
- `func(echo.HandlerFunc) echo.HandlerFunc` - `echo.HandlerFunc`
- `echo.HandlerFunc` - `func(*echo.Context) error`
- `func(*echo.Context) error` - `func(http.Handler) http.Handler`
- `func(http.Handler) http.Handler` - `http.Handler`
- `http.Handler` - `http.HandlerFunc`
- `http.HandlerFunc` - `func(http.ResponseWriter, *http.Request)`
- `func(http.ResponseWriter, *http.Request)` - Extensible handler, supports:
- Handler - `echo.HandlerFunc`
- `echo.HandlerFunc` - `func(*echo.Context) error`
- `func(*echo.Context) error` - `http.Handler`
- `http.Handler` - `http.HandlerFunc`
- `http.HandlerFunc` - `func(http.ResponseWriter, *http.Request)`
- `func(http.ResponseWriter, *http.Request)` - Sub-router
- Sub routing with groups. - Groups
- Handy encoding/decoding functions. - Handy encoding/decoding functions
- Serve static files, including index. - Build-in support for:
- Built-in support for WebSocket. - Static files
- Centralized HTTP error handling. - WebSocket
- Use a customized function to bind request body to a Go type. - API to serve index and favicon
- Register a view render so you can use any HTML template engine. - Centralized HTTP error handling
- Customizable request binding function
- Customizable response rendering function, allowing you to use any HTML template engine.
## Benchmark ## Benchmark
@ -76,6 +78,7 @@ $ go get github.com/labstack/echo
- [CRUD](https://github.com/labstack/echo/tree/master/examples/crud) - [CRUD](https://github.com/labstack/echo/tree/master/examples/crud)
- [Website](https://github.com/labstack/echo/tree/master/examples/website) - [Website](https://github.com/labstack/echo/tree/master/examples/website)
- [Middleware](https://github.com/labstack/echo/tree/master/examples/middleware) - [Middleware](https://github.com/labstack/echo/tree/master/examples/middleware)
- [Stream](https://github.com/labstack/echo/tree/master/examples/stream)
##[Guide](http://labstack.github.io/echo/guide) ##[Guide](http://labstack.github.io/echo/guide)

View File

@ -10,30 +10,32 @@ Echo is a fast HTTP router (zero memory allocation) and micro web framework in G
## Features ## Features
- Fast HTTP router which smartly prioritize routes. - Fast HTTP router which smartly prioritize routes
- Extensible middleware/handler, supports: - Extensible middleware, supports:
- Middleware - `echo.MiddlewareFunc`
- `echo.MiddlewareFunc` - `func(echo.HandlerFunc) echo.HandlerFunc`
- `func(echo.HandlerFunc) echo.HandlerFunc` - `echo.HandlerFunc`
- `echo.HandlerFunc` - `func(*echo.Context) error`
- `func(*echo.Context) error` - `func(http.Handler) http.Handler`
- `func(http.Handler) http.Handler` - `http.Handler`
- `http.Handler` - `http.HandlerFunc`
- `http.HandlerFunc` - `func(http.ResponseWriter, *http.Request)`
- `func(http.ResponseWriter, *http.Request)` - Extensible handler, supports:
- Handler - `echo.HandlerFunc`
- `echo.HandlerFunc` - `func(*echo.Context) error`
- `func(*echo.Context) error` - `http.Handler`
- `http.Handler` - `http.HandlerFunc`
- `http.HandlerFunc` - `func(http.ResponseWriter, *http.Request)`
- `func(http.ResponseWriter, *http.Request)` - Sub-router
- Sub routing with groups. - Groups
- Handy encoding/decoding functions. - Handy encoding/decoding functions
- Serve static files, including index. - Build-in support for:
- Built-in support for WebSocket. - Static files
- Centralized HTTP error handling. - WebSocket
- Use a customized function to bind HTTP request body to a Go type. - API to serve index and favicon
- Register a view render so you can use any HTML template engine. - Centralized HTTP error handling
- Customizable request binding function
- Customizable response rendering function, allowing you to use any HTML template engine.
## Getting Started ## Getting Started