实现过程非常简单,只需在编译时加上-ldflags "-H windowsgui"即可
例如:go build -ldflags "-H windowsgui" example.go

转载于:https://my.oschina.net/mzui/blog/143367

Last modification:November 7, 2021
If you think my article is useful to you, please feel free to appreciate