Keep in mind that this article is from 2015 and a few things have changed, such as context being in the standard library (which matters for the imports) and the fact that you can now do HTTP requests with a context too which would simply the HTTP example.