How to embed -ldflags in go file

Hi there!
is it possible to put options passed to go command in -ldflags section inside go files?
for example I call go build -ldflags “-s -w -H=windowsgui” for windows and I need to add this -ldflags option every time I build/run my app. I’d set them in build_windows.go

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.