A iterator for Go. Based on http://ewencp.org/blog/golang-iterators/