New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
How do I open Golang encoded programs in Windows?
kocamanyarrak
Member
in Help
When I try to open the programs I downloaded, the window immediately closes. How do I open programs written in Golang? The extensions of the programs are in .exe format.
Comments
If it's a .exe just dbl-click, but to see some kind of log: open the command prompt and type in the .exe's path like:
C:\MyApp\App.exe
or justapp.exe
if the cmd was opened at the same dir of the .exe.Golang compiles to a binary. If someone compiled for windows, then the .exe is just a normal Windows executable. There's nothing special about it having been written in Golang. It's not like Java or Python where you need an interpreter/runtime.
If the window closes immediately, perhaps it's a command-line program?
The program might be expecting some start parameters and/or switches and there is probably no ReadLine to keep the display up after the program exits. Run the program from the windows command prompt. That should show any messages or errors from the program.
Yes, CLI program.