When I publish a Go package which need to hide important code
 

> go build -buildmode=archive -o ***.a


I use this command to make .a static library, when other users need to use 
this .a static library, they need this .a and .go files which have all 
needed public functions, structs and constants definition, like this:



package libdemo
> function MyBusinessAlgorithmFunc(in string) (string) { return ""}



Now this is my question, how to generate function code hidden .go files 
like this? I don't hope to write them by hand, there are a large amount of 
functions in my package.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/af65f789-60ff-49b0-aeba-db88092af2ca%40googlegroups.com.

Reply via email to