However, the comparison to Electron is unfair. The base Electron package is well over 100M, more than 10x as large, and generally not statically linked. This binary also doesn't hog your RAM and CPU and GPU like Electron does.
Criticisms of something that needs a semi-permanent allocation of my laptop's memory (like slack or Spotify) don't really apply.
Alternatively, it's possible that the executable size is large because it: (1) actually contains a lot of in-use code, or (2) contains media files. I know on Windows, it's common for people to make media files part of the .exe file. The Windows Portable Executable (PE) format makes it quite convenient to do this; and the Windows API has functions that make loading up files bundled as part of the .exe file as seamless as reading from the file system.
Also there are no media files embedded, the whole project is 130LOC + some html markup:
https://git.sr.ht/~sircmpwn/openring/tree/master/openring.go
You can’t really say “go gets away with it” as though these languages are doing the same thing.
That's just my anecdata