github.com/joselitofilho/goreleaser@v0.155.1-0.20210123221854-e4891856c593/www/docs/cookbooks/cgo-and-crosscompiling.md (about)

     1  # Cross-compiling Go with CGO
     2  
     3  Best option to cross-compile Go project with CGO dependencies would be in using docker image.
     4  [This project](https://github.com/troian/golang-cross) provides the [image](https://hub.docker.com/repository/docker/troian/golang-cross) with bunch of ready to use cross-compilers as well as how-to make sysroot.
     5  All that wrapped into [example](https://github.com/troian/golang-cross-example)