Fast, simple web framework for go. Based on express and web.go.
app, server := soggy.NewDefaultApp()
server.Get("/echo/(.*)", func (echo string) (string, map[string]string) {
return "template_example.html", map[string]string{ "echo": echo }
})
server.Use(server.Router)
app.Listen("0.0.0.0:9999")
- Routing
- Middleware
- HTTP helpers
- Server mounting
- Easily pluggable view system
- App/Server implement http.Handler, can use with your own http.Server
- Speed of Go
- Go 1.0.1 (tested), instructions here.
$ go get github.com/dbrain/soggy
See examples.