Hello All,

I am new to golang. I have a few queries:

I am developing: SDK which have 4-5 files, SDK has dependency on protocol 
buffer.

*1.  If I run the below command on SDK folder : *
        $ go build
           - It build all the SDK files and create  "sdk.a" file in pkg 
folder.

        *   Query*: sdk.a is static library. If I want to release only the 
static library [sdk,a] what is the best way to do that...such that people 
can link static library in application and call the SDK APIs ?
      
*2. To make a shared library I used following command: *
     $ go build -buildmode=shared
     $ go install -buildmode=shared std 
     $ go install -buildmode=shared -linkshared 

     With the above commands I got shard library [libsdk,so] in pkg folder.
 
     *Query*: If i want to distribute only shared file [libsdk.so], what is 
the best way to do that...such that people can link shared library in 
application and call the SDK APIs?


*Thanks in advance.*

-- 
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.

Reply via email to