A simple Go generator with templates