/blog-example-go-context-cancellation

Example repository for https://www.sohamkamani.com/golang/2018-06-17-golang-using-context-cancellation/

Primary LanguageGo

Go Context Examples

This repo contains example code for my blog post on using the context package in Go

Run any of the examples by executing:

go run <filename>.go

in your terminal.

This program will not compile with go build, since all three files contain the main function, and so will have to be run separately