by treystout · 12y ago · 0 comments
Edit: As others pointed out, Go is compiled binary and does not required runtime (like JVM) so versionning is not issue. Thanks for clearing up.
So if you have multiple different Go applications on one server, and they use some of the same libraries, then each application's binary will contain a copy of that library.
It makes things a little redundant, but also simplifies the deployment process.
edit: The only exception is if you are using cgo and liking to existing C libraries. In pure Go there is no linking.
By the way, you can actually do the same for Python using cx_Freeze; it'll create a single executable with Python + libraries + you code.
[1] http://cx-freeze.readthedocs.org/en/latest/script.html#scrip...