An fast and simple express/sinatra like web framework.. thing.. for Go.
Go Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bench
example
.gitignore
README.md
context.go
env.go
env_test.go
htmltemplateengine.go
request.go
request_test.go
requestloggermiddleware.go
response.go
router.go
router_test.go
server.go
soggy.go
soggy_test.go
staticservermiddleware.go
uid.go
uid_test.go
util.go
util_test.go

README.md

soggy

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")

Features

  • 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

Installation

Requirements

  • Go 1.0.1 (tested), instructions here.

Steps

$ go get github.com/dbrain/soggy

Examples

See examples.