Just distribute it as a plugin (https://golang.org/pkg/plugin/ <https://golang.org/pkg/plugin/>) - you only need to make the calling interface public - and based on your use case - there is nothing proprietary there so it won’t be a problem.
> On May 17, 2020, at 9:45 PM, Billy Cui <billy...@gmail.com> wrote: > > Hi Daniel, > > I have test your solution of obfuscation, look you can only obfuscate the > binary not the source code. In my case, I need to obfuscate the library > code, it's not final binary, it should be called by 3rd party. > > On Sunday, May 17, 2020 at 6:11:18 AM UTC+8, Daniel Martí wrote: > I don't generally advocate the use of obfuscation, but you can give this a > try if you want: https://github.com/mvdan/garble > <https://github.com/mvdan/garble> > > -- > 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 > <mailto:golang-nuts+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/87693c2b-91d4-4d5d-9c77-8219d9461cc5%40googlegroups.com > > <https://groups.google.com/d/msgid/golang-nuts/87693c2b-91d4-4d5d-9c77-8219d9461cc5%40googlegroups.com?utm_medium=email&utm_source=footer>. -- 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/0F8A318C-8FB9-4EDB-99CD-8B187AD1FDF7%40ix.netcom.com.