windows - Specify Go build flag "-H=windowsgui" in code comment -
i creating desktop windows application in go. use line install it:
go install -ldflags -h=windowsgui
i want users able say
go github.com/my/app
and automatically have windowsgui
flag specified building. possible add flag code comment, #cgo
comments. or have provide make
file in project directory in old days of go? or not possible @ all?
bad news, can't.
semi-good news, can tell users use go -ldflags "-h windowsgui" github.com/my/app
on windows.
Comments
Post a Comment