On Thu, Apr 25, 2019 at 8:59 PM xu <diqiux...@gmail.com> wrote: > I recently built an app using go plugin, but I have some questions about > "plugin cannot be closed", why can't plugin be uninstalled? >
Try googling "go plugin unload". The first result for me is https://github.com/golang/go/issues/20461 and there are plenty of other relevant answers. This was actually asked on this mailing list just a few weeks ago although I can't readily find that discussion thread. The usual answer to this type of question is to run the plugin as an independent process you communicate with via a RPC (remote procedure call) mechanism. Then when you need to restart the plugin you simply kill and restart it. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- 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.