Re: [go-nuts] Inspecting a function for its arguments with reflection

2017-03-21 Thread Tyler Compton
Thanks for the help! This is what I'm looking for. On Mon, Mar 20, 2017 at 6:32 PM Marian Kopriva wrote: > Check out https://github.com/go-martini/martini if you're looking for > some magic. > In case you don't find any magic there, then i'm sorry, i've havne't used >

Re: [go-nuts] Inspecting a function for its arguments with reflection

2017-03-20 Thread Marian Kopriva
Check out https://github.com/go-martini/martini if you're looking for some magic. In case you don't find any magic there, then i'm sorry, i've havne't used martini myself, and am not familiar with its source, i've only heard from others that it's quite magicky. -- You received this message

Re: [go-nuts] Inspecting a function for its arguments with reflection

2017-03-20 Thread Tyler Compton
Also, if there already exists a library that does this kind of magic for REST APIs, I'd love to hear about it. On Mon, Mar 20, 2017 at 4:01 PM Tyler Compton wrote: > I'm trying to create an HTTP request router library that automatically > decodes parameters in the request URL

[go-nuts] Inspecting a function for its arguments with reflection

2017-03-20 Thread Tyler Compton
I'm trying to create an HTTP request router library that automatically decodes parameters in the request URL and passes them as arguments to the handler function. It would theoretically make something like this possible: myRouter.HandleFunc("/getPuppies/{id}", func(w http.ResponseWriter, r