A totally different story imho, it was not my initial goal.
I really wanted to be able to share those software with non go world,
and this is fulfilled, almost. Not the brightest way, a way that work.
I don t have experience with c programming (which heavily uses that feature)
and their deployment methods/difficulties on unix friendly platforms,
as a result i have poor general knowledge and experience of those problems.
(does windows support that feature too ? I don t even know that..)
So basically nop.
Also note that preparing SRPM, or DEBS (S stands for Source)
are way different than their counter binary part i provided here.
I also think that because of historical reasons, you d better go with a makefile,
dep, rpm, aur heavily relies on it when it come to build the final executable on the final machine.
(then, the q is, how to not have to maintain multiple makefile
for the various target systems, and how to handle that for windows. No clue.)
Now i look to that
https://deferpanic.com/blog/linking-to-a-precompiled-go-lang-library/or this
http://blog.ralch.com/tutorial/golang-sharing-libraries/I wonder if it is up to date ?
Two questions i have reading this,
does a pre compiled binary can include at runtime a pre compiled library ?
Said differently, does the final exe requires to be compiled on the final system ?
Or, can it be simply shipped as a pre compiled file and include only some symbols
to the dependents libraries to be resolved JIT on the final system ?
In both ways, compiling on the target system, or pushing only a binary with appropriate symbols,
where will it look for this libraries on the system (PATH?) ?
Thus, is this a per system/distrib responsibility, or is it a per language responsibility to define an host directory ?
anyways, as you can see, i have more questions than answers on that topic,
as of today, i m not on the page to achieve such job.