https://github.com/karalabe/xgo