These are chat archives for gin-gonic/gin

16th
Sep 2016
rohith kishan
@binsearch
Sep 16 2016 05:00
The result I want is the global variable not to be shared. The global variable should be sort of local to each request. That's what I want. But I can't make these global variables local in the code itself, because then I have to pass a lot of arguments to each function and that would be a pain.
Thomas Boerger
@tboerger
Sep 16 2016 05:22
Using global variables is not really good because it can always have side effects
rohith kishan
@binsearch
Sep 16 2016 07:10
yeah. got it. made them local. passed them through a struct. Anyways, thanks for your response
Thomas Boerger
@tboerger
Sep 16 2016 08:31
A struct is the best way to reduce the amount of passed parameters :)