How to hide console window of a Go program on Windows [duplicate] December 1, 2023 by Tarik Add -ldflags -H=windowsgui to your go build/install command line. You’ll see that the console window is absent: