Elfin
A simple framework for building applications or services for the web.
Getting started
Make sure your GOPATH is set. Use Glide, Dep or other dependency management tool to install elfin
dep ensure -add github.com/obipawan/elfin
package main
import (
"fmt"
"net/http"
"github.com/obipawan/elfin"
"github.com/obipawan/elfin/middlewares"
)
func foo(w http.ResponseWriter, r *http.Request, p elfin.Params) {
fmt.Fprint(w, p)
}
func main() {
elfin := elfin.New()
elfin.Get("/:word", foo)
elfin.Use(middlewares.Log)
elfin.Start()
}