Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
proposal: command line flag for go build to add icon for windows executable #38509
A syso file can be used to embed all sorts of different resources and not just an icon.
I don't understand why generating a .syso file is overkill. Sure, it can do a lot more than add an icon. So what? If you want to add an icon, you have to have an icon file. It's one more command, run exactly once, to turn that icon file into a .syso file. Then you're done.
A .syso file has another advantage: it is always there, so you don't have to add a command line option when you run