For anyone interested in making little games in Golang, Termloop[1] is a terminal-based engine (though it uses text to render rather than this iTerm-specific feature).

[1] https://github.com/joelotter/termloop

Also, for non terminal-based things, Raylib is really nice. It's originally a C-based games-library, but the bindings work well for playing around in Golang.

https://github.com/gen2brain/raylib-go