Cross-compiling Go with CGOCross-compiling Go with CGO The best option to cross-compile Go project with CGO dependencies would be in using Docker image.