{"action":"opened","issue":{"url":"https://api.github.com/repos/zenazn/goji/issues/182","repository_url":"https://api.github.com/repos/zenazn/goji","labels_url":"https://api.github.com/repos/zenazn/goji/issues/182/labels{/name}","comments_url":"https://api.github.com/repos/zenazn/goji/issues/182/comments","events_url":"https://api.github.com/repos/zenazn/goji/issues/182/events","html_url":"https://github.com/zenazn/goji/issues/182","id":140052406,"number":182,"title":"wrapping HandlerType","user":{"login":"tcurdt","id":13697,"avatar_url":"https://avatars.githubusercontent.com/u/13697?v=3","gravatar_id":"","url":"https://api.github.com/users/tcurdt","html_url":"https://github.com/tcurdt","followers_url":"https://api.github.com/users/tcurdt/followers","following_url":"https://api.github.com/users/tcurdt/following{/other_user}","gists_url":"https://api.github.com/users/tcurdt/gists{/gist_id}","starred_url":"https://api.github.com/users/tcurdt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcurdt/subscriptions","organizations_url":"https://api.github.com/users/tcurdt/orgs","repos_url":"https://api.github.com/users/tcurdt/repos","events_url":"https://api.github.com/users/tcurdt/events{/privacy}","received_events_url":"https://api.github.com/users/tcurdt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-11T00:46:12Z","updated_at":"2016-03-11T00:46:12Z","closed_at":null,"body":"Obviously this cannot work\r\n\r\n    func wrap(fn web.HandlerType) web.HandlerType {\r\n     return func(c web.C, w http.ResponseWriter, r *http.Request) {\r\n       log.Println(\"Before\")\r\n       fn(w, r)\r\n       log.Println(\"After\")\r\n     }\r\n    }\r\n\r\nbut I am wondering what could be the best non-middleware way of wrapping a handler?"}}