How do you set the application icon in golang?
问题 I've just created my first go application on Windows. How do I give it an icon? There doesn't seem to be any build flags to do this, and I know golang doesn't support resources. 回答1: You can use a tool like akavel/rsrc in order to generate a .syso file with specified resources embedded in .rsrc section, aimed for consumption by Go linker when building Win32 excecutables. See as an example the lxn/walk application, which embeds other metadata in its executable. rsrc [-manifest FILE.exe