HuaweiTech/gorouter — pull request #8 by WuLonghui (2014-10-10 06:19:26+00:00)
Title: Fix callbacks in loops

Setting HandleFunc for InfoRoutes is callbacks in loops, so if there are multiple routes, all the paths will refer to the last marshaler. To fix this issue, should create function outside of the loop and pass marshaler .

For more details: http://tobyho.com/2011/11/02/callbacks-in-loops/