1
0
mirror of https://github.com/labstack/echo.git synced 2024-11-28 08:38:39 +02:00
High performance, minimalist Go web framework https://echo.labstack.com/
Go to file
Vishal Rana 7942e4a77b Engine#Multipart,#FormFile. Closes #394.
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-12 18:32:36 -08:00
_fixture Left over 2016-01-28 23:56:09 -08:00
engine Engine#Multipart,#FormFile. Closes #394. 2016-03-12 18:32:36 -08:00
middleware Last-Modified header for static content 2016-03-12 10:18:40 -08:00
test Engine#Multipart,#FormFile. Closes #394. 2016-03-12 18:32:36 -08:00
.editorconfig adding editorconfig for happiness 2015-06-23 22:43:07 -07:00
.gitattributes Moved examples to recipes 2015-10-08 20:10:55 -07:00
.gitignore Logger as not an interface 2016-03-06 09:52:32 -08:00
.travis.yml Fixed group middleware 2016-02-20 08:11:02 -08:00
context_test.go Closes #393 2016-03-12 11:49:45 -08:00
context.go Engine#Multipart,#FormFile. Closes #394. 2016-03-12 18:32:36 -08:00
echo_test.go Fixed #387 2016-03-12 05:14:15 -08:00
echo.go Engine#Multipart,#FormFile. Closes #394. 2016-03-12 18:32:36 -08:00
glide.lock Closes #314 2016-03-11 07:53:54 -08:00
glide.yaml Removed HTTP2 option 2016-02-18 14:04:28 -08:00
group_test.go - Handler and middleware signature changed 2016-02-15 19:32:16 -08:00
group.go Fixed nested groups, reset Context#handler 2016-03-08 19:31:11 -08:00
LICENSE Update LICENSE 2015-04-13 17:32:22 -07:00
README.md Update README.md 2016-03-11 18:26:16 -08:00
router_test.go Closes #314 2016-03-11 07:53:54 -08:00
router.go Closes #283 2016-03-08 19:40:25 -08:00

NOTICE

Echo GoDoc License Build Status Coverage Status Join the chat at https://gitter.im/labstack/echo

A fast and unfancy micro web framework for Go.

Features

  • Fast HTTP router which smartly prioritize routes.
  • Run with standard HTTP server or FastHTTP server.
  • Extensible middleware framework.
  • Router groups with nesting.
  • Handy functions to send variety of HTTP responses.
  • Centralized HTTP error handling.
  • Template rendering with any template engine.

Performance

Based on [vishr/go-http-routing-benchmark] (https://github.com/vishr/go-http-routing-benchmark), June 5, 2015.

Performance

Getting Started

Installation

$ go get github.com/labstack/echo

Hello, World!

Create main.go

package main

import (
	"net/http"

	"github.com/labstack/echo"
	"github.com/labstack/echo/engine/standard"
	"github.com/labstack/echo/middleware"
)

// Handler
func hello() echo.HandlerFunc {
	return func(c echo.Context) error {
		return c.String(http.StatusOK, "Hello, World!\n")
	}
}

func main() {
	// Echo instance
	e := echo.New()

	// Middleware
	e.Use(middleware.Logger())
	e.Use(middleware.Recover())

	// Routes
	e.Get("/", hello())

	// Start server
	e.Run(standard.New(":1323"))
}

Start server

$ go run main.go

Browse to http://localhost:1323 and you should see Hello, World! on the page.

Next?

Contribute

Use issues for everything

  • Report issues
  • Discuss before sending pull request
  • Suggest new features
  • Improve/fix documentation

Credits

License

MIT