rodrigocfd / windigo

Windows API and GUI in idiomatic Go.

Home Page:https://pkg.go.dev/github.com/rodrigocfd/windigo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to hide console window?

pigLoveRabbit520 opened this issue · comments

Sorry, I have found the solution:
Note that Windows applications load from a command prompt by default, which means if you click an icon you may see a command window. To fix this add the parameters -ldflags -H=windowsgui to your run or build commands.

You also may want to take a look at https://github.com/rodrigocfd/winsafe-examples repo.