6/7/2023 0 Comments Goland for macAlso, I would like to know how to rename the Windows 'exe' file to something else than main.exe, e.g., upload.exe? I am using go version go1. What is the command now to cross-compile on mac for windows for multiple source files belonging to the same package? The previous command did not work since the other two file common.go and specific.go are not included. Moreover, since the program is relatively small, I have all functions in the 'main' package. They are all in the same source directory though. Here's a quick video on how you can use it straight from the. The program has grown since then and I have it now split into three source files: main.go golang 1.13 is out and your upgrade process doesn't need to be a painful one. This produced an executable called main.exe when I had just one file called main.go. env GOOS=windows GOARCH=386 go build -v main.go I did some research and found that the following command creates a Windows executable on my Mac. Eventual target platform for deploying the code is Windows though. I am writing a go program to parse csv files and upload them to a postgres database in the Heroku cloud.
0 Comments
Leave a Reply. |