You should definitely run go fmt, at the moment it's rather difficult to read the examples.
I had to anonymize the code a bit and it seems like I messed up doing so in the gist. I am sorry! I will unsure to run it through gofmt the next time. Thank you for the feedback!
datadoghq link is broken as well.
Ah! Seems like I messed up the markdown. Fixed now. Thank you for your feedback.