1. Error details
Error running 'go build awesomeProject (1)': Cannot run program "C:\Users\erbin\AppData\Local\Temp\___go_build_awesomeProject__1_.exe" (in directory "G:\Language Proctice\Goworks\src\awesomeProject"): CreateProcess error=216, The version of %1 is not compatible with the version of Windows you are running. Please check your computer's system information and contact the software publisher.
At this point the code is
2. Reason Analysis
In go, the entry package of the application should be main, and when the compiled source code does not have the main package, it will not be able to compile and output executable files, which will lead to errors here
Solution
Change the name of the package where the main function is located to main, as follows: