We're experimenting with the new plugin package (in go 1.8 beta) in telegraf <https://github.com/influxdata/telegraf>. It would be convenient if plugin code could be in any package and not required to be in "package main". Is that possible? For example, if we wanted a package to allow both the typical static linking and building as a plugin (shared library). Currently, this requires having code for the same plugin split between different directories, one for the plugin's package and one for package main.
-- 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.