Partial implementation of Go generator.