These are chat archives for gin-gonic/gin

6th
Jan 2017
nolka
@nolka
Jan 06 2017 16:21
Hello all)
Guys, how i can pass chan from my application to gin request handler?
i want to create web interface to my console app, if this will helpful)
&want to use chan to pass commands to my app from web interface
Javier Provecho Fernandez
@javierprovecho
Jan 06 2017 20:30
@nolka you can use a global variable in your package or use a first class function when creating the router.
Be sure to add a buffer cap to the channel so your requests don't block
Matt Reyer
@winduptoy
Jan 06 2017 20:52
When adding errors to a request with c.Error(myError), how can I later see the filename/line number from which that error was originally created?