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

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -