Is it possible to share package through *.a files? https://stackoverflow.com/questions/15551293/what-are-a-files-in-go
Also saw this running 'go help buildmode' -buildmode=default Listed main packages are built into executables and listed non-main packages are built into .a files (the default behavior). -buildmode=shared Combine all the listed non-main packages into a single shared library that will be used when building with the -linkshared option. Packages named main are ignored. On Monday, June 26, 2017 at 8:54:58 AM UTC-7, st ov wrote: > > I thought source could be shared and vendored directly as well. > > But is the buildmode and linkedshared arguments to go install and go > build another possibility? > What are they for? > > https://stackoverflow.com/a/30488222 > https://stackoverflow.com/a/35060357 > > Thanks! > > > > On Monday, June 26, 2017 at 7:47:14 AM UTC-7, Peter Mogensen wrote: >> >> >> >> On 2017-06-26 09:37, st ov wrote: >> > Ruby has Gems and .NET has DLLs. >> > How do you package and share libraries in Go? >> >> Gems are mainly source files, right? ... Using >> source libraries in Go is relatively straight forward. >> For your "package main" programs the easiest is to put the >> library source in "vendor" - maybe using some vendoring tool. (of which >> there are many) >> >> Using .so files to dynamically link to compiled shared libraries are >> somewhat in it's infancy in Go. >> >> One of the problems for real use is: >> >> https://github.com/golang/go/issues/19233 >> >> /Peter >> > -- 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. For more options, visit https://groups.google.com/d/optout.