ATOM feed template, though using Go templates
If you like, you can probably get the skeleton of ATOM feeds from my Go Templates template for ATOM feeds.
I use that to generated the feed for my site, which validates fine (except for few warnings like, not stripping script tags from the content).
Edited by Kaushal Modi