Please take a look here: 
https://stackoverflow.com/questions/28576173/reason-for-huge-size-of-compiled-executable-of-go

You can probably make it much smaller by just stripping the binary, and for 
those cases where you want it to be even smaller, you can always use UPX 
(but that comes with a price in the form of slower startup and higher 
memory usage).

On Saturday, April 18, 2020 at 7:26:11 PM UTC+2, jare...@gmail.com wrote:
>
> Why does the simple Hello world program take 2 MB after compilation?
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/c792317e-70f8-4e78-a260-ad265c6e0a5b%40googlegroups.com.

Reply via email to