my program and plugin shares some common package, i'm temporarily copy the 
plugin's main package to main_$timestamp, 
so i can avoid same pluginpath and load it many times.

but it doesn't works for some problems:
if i changes only structure method, because of type equal, the runtime 
still refers to the old type, the new function will never be run.
if i change the structure members, the plugin was failed to load for error 
'plugin was built with a different version'

i'm thinking another way: could i change the plugin's module name to 
module_$timestamp before go build, so the plugin doesn't shares package 
with main program?

-- 
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/8a004129-e649-4d2a-a4a9-e20cbdd1858b%40googlegroups.com.

Reply via email to