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

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

Last modification:August 28th, 2021 at 09:42 pm
If you think my article is useful to you, please feel free to appreciate