What is this CONTEXT in Go lang when talking about HTTP Requests? -


to might stupid question. on other hand is important me. new go programming , when read sharing values between middlewares , go concurrency patterns: context not figure out meant context when referring sharing values between middleware handlers or request handlers in general.

i've been able write web framework go -- frodo. not perfect in lot of ways, learning experiment. see not stupid. under informed being new go lang.

thank in advance comprehensive explanation.

i found great explanation @ beginning of blog: http request contexts & go

request contexts, new terminology, typically way pass data alongside http request processed handlers (or middleware) have written. data user id, csrf token, web token, whether user logged in or not—something typically derived logic don't want repeat over-and-over again in every handler. if you've ever used django, request context synonymous request.meta dictionary.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

css - Can I use the :after pseudo-element on an input field? -