command line args

This commit is contained in:
Chapuis Bertil 2015-09-07 15:29:24 +02:00
parent 436de7f687
commit 738e78c439
6 changed files with 110 additions and 74 deletions

View file

@ -12,6 +12,10 @@ type Router struct {
Context
}
func NewRouter(context Context) *Router {
return &Router{context}
}
func (router Router) ServeHTTP(w http.ResponseWriter, r *http.Request) {
m := r.Method
u := r.RequestURI