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 constant
I don't want to write type definition for fake go files, but type
definition is necessary for binary-only-package end users, like code hint.
If the package has a lot of functions/structs, write type definition is an
impossible hard work.
--
You received this message because you are subscribed