github.com/ahmet2mir/goreleaser@v0.180.3-0.20210927151101-8e5ee5a9b8c5/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)