In order to cross compile it to aarch64, the command i used is following, but error: I added the cross compile var using goos=windows, while i should use export goos=windows. To do that, it looks like you need to install mingw to get gcc and other tools.
Install Golang on Windows [StepbyStep] GoLinuxCloud
Some package seems to be missing.
Try it out with the code below.
My system is debian gnu/linux bookworm/sid. Then set the cc/cxx enviromental variables to point to the correct compiler. More can be found at this blog post by dave cheney. I found the problem was in my bash script.
Did it means that gccgo. It looks like something is wrong with your mingw installation. The compiler is trying to use your linux. Docker container to do cross compilation (linux, windows, macos, arm, arm64) of go packages including support for cgo.

Try it out with the code below.
More can be found at this blog post by dave cheney. Help on that is at. How can i fix this error?



![Install Golang on Windows [StepbyStep] GoLinuxCloud](https://i2.wp.com/www.golinuxcloud.com/wp-content/uploads/choco.jpg)