garyburd/twister — Issue #20: A couple usage questions
Author: liamstask
Created: 2011-12-07 07:04:44+00:00
State: open

Firstly, thanks for twister - lots of great code to read!

1. Router appears to only map routes to funcs, whereas I would often to like to route to a func on a struct, to avoid referring to global context. Is this possible, or can you recommend a best practice?

2. Do you have rules of thumb for when you'd use twister/web.Cookie rather than net/http.Cookie? They appear to have quite similar APIs.

Cheers.