I'm evaluating the NATS for my upcoming project. Why testing it I noticed that the size of the compiled executable goes from around 2MB to 7MB when I add the import line for the NATS client and use a few simple calls from the library.
I'm using Linux Mint 20.3, with Golang 1.18, the NATS library is: github.com/nats-io/nats.go v1.16.0
Can anyone explain why a library that's only supposed to interface with the server, adds such an enormous amount of code to the binary?
Is there any way to reduce this?