I’m using Go (6g) to compile a GTK application and I want to know if there is a compiler/linker option to make it a Windows executable as opposed to console executable. MinGW has a -mwindows option for this and currently I’m having to manually alter the PE header with a hex editor which is annoying.
Share
Add
-ldflags -Hwindowsguito thego build/get/installcommand line. For example,