I would like to be able to distribute my go library without its source.
Before go1.5 we used a trick where we package up all the .a files in
GOPATH/pkg and all the source files in GOPATH/src except for the files we
didn't want to distribute. Those we would replace with a fake.go file that
only contained the package declaration. We would make sure the modification
time on the fake.go files was earlier than the corresponding .a. This would
make sure the go compiler didn't look at the source file.
In go1.5 this trick doesn't seem to work anymore. The go compiler now
complains about missing struct and function definitions in our fake.go.
I thought the shared library support in go1.5 would provide another
solution here, but I haven't figured out a way to compile code that imports
the code we don't want to distribute without providing that code.
Any suggestions would be appreciated.
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 firstname.lastname@example.org.
For more options, visit https://groups.google.com/d/optout.