rodrigocfd / windigo

Windows API and GUI in idiomatic Go.
https://pkg.go.dev/github.com/rodrigocfd/windigo
MIT License
417 stars 23 forks source link

How to hide console window? #11

Closed pigLoveRabbit520 closed 2 years ago

pigLoveRabbit520 commented 2 years ago

image

pigLoveRabbit520 commented 2 years ago

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.

rodrigocfd commented 2 years ago

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