Golang — context rewritten

Context as controller

What is the context?

The first example of your own context

The context in HTTP API

Handy tips

Almost always use context in functions/methods

Don’t pass it to struct fields

That's all

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store