Someone wrote to me today that they found some of my public Github Gists "publickeydecrypt|encryptgpgbase64.go and encryptdecryptgpg_armor.go - incredibly helpful! Thanks for sharing those. I'm using the latter for storing bitcoin private keys."
I originally wrote them as there weren't any good examples on the web that ran through different scenarios.
As part of the process I wrote a program called Jaeger which is a JSON encoded GPG encrypted key value store. It is useful for generating and keeping configuration files secure.
Here is a compilation of my code examples.