Hi Gophers,I have been working with Golang for quite sometime. I'm writing libraries using it.Now, I'm planning to take this product to next level and I might go commercial through my organisation, which I'm currently working on.I need your suggestions on distributing these libraries when going commercial.There are two options I have in table now,1. Providing the source code of the library directly and allowing the customers to build in their environment.2. Providing the precompiled binary packages for different platforms without exposing the source.AFAIK, providing the precompiled binary packages is not compatible with different versions of Go (even minor version). For instance, if the binary packages are compiled with 1.4, it can be only used with 1.4 in customer environment. Correct me, if I'm wrong.So my questions are,1. For commercial purpose, what are the options and the best option for distributing the libraries?
2. Is Go fraternity requires to provide the sources by default? So, that customer could build it in any platforms and Go versions.
3. If there is a possibility for providing binary packages, let me know whether I have to provide build (release) for each versions of Go release?
I have been working with Golang for quite sometime. I'm writing libraries using it.Now, I'm planning to take this product to next level and I might go commercial through my organisation, which I'm currently working on.I need your suggestions on distributing these libraries when going commercial.There are two options I have in table now,1. Providing the source code of the library directly and allowing the customers to build in their environment.2. Providing the precompiled binary packages for different platforms without exposing the source.AFAIK, providing the precompiled binary packages is not compatible with different versions of Go (even minor version). For instance, if the binary packages are compiled with 1.4, it can be only used with 1.4 in customer environment. Correct me, if I'm wrong.So my questions are,1. For commercial purpose, what are the options and the best option for distributing the libraries?2. Is Go fraternity requires to provide the sources by default? So, that customer could build it in any platforms and Go versions.
3. If there is a possibility for providing binary packages, let me know whether I have to provide build (release) for each versions of Go release?
Actually, I'm planning to generate godoc from the source files during the build, and removing the sources alone after that.Godoc will be bundled along with the product and also published online.Will that suffice??
As long as `godoc import/path` shows correct document for your package.it doesn't matter how you generate doc.go (if the documentation is publishedonline, even a doc.go that only contains "package pkgname" will do).but be aware of the timestamp problem. doc.go must have an older timestamp than the package archive file (*.a)
Some library companies simply provide two versions "compiled" and "source", where "source" version costs more.
You can also setup a simple service for library users to build their "custom" version for some particular Go version. Sometimes the project needs a fix in the standard libraries or Go to make things work; although that is an edge case.If you have the "compiled" and "source" model, then you can simply state that the "compiled" version is only provided for go stable/rc releases.
Egon,
Could you help me with the above questions??
Thank in advance!
On Thu, Jan 1, 2015 at 9:48 PM, Egon <egon...@gmail.com> wrote:Some library companies simply provide two versions "compiled" and "source", where "source" version costs more.Providing both the compiled and source versions seems to be a good option!You can also setup a simple service for library users to build their "custom" version for some particular Go version. Sometimes the project needs a fix in the standard libraries or Go to make things work; although that is an edge case.If you have the "compiled" and "source" model, then you can simply state that the "compiled" version is only provided for go stable/rc releases.Yes, I would suggest for setting up the service for allowing the customers to build their custom version.But if only ready-made builds are possible/allowed by my company, whether updating the site with latest build (for each go stable/rc release) and maintaining a clone of previous, say 5 builds is a good idea??
--
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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+unsubscribe@googlegroups.com.