go-plugins.md 2.0 KB

+++ date = "2017-02-16T23:29:45+01:00" title = "Plugins in Go 1.8" tags = [ "tech", "go", "go1.8", "golang", "plugins" ] categories = [ "tech" ]

+++

This is a talk I gave at the Go 1.8 Release party at the Golang Paris Meetup. Source for the slides and the code is on Github (see below).

Get the demo and check out the source code

On Github: https://github.com/GildasCh/go-plugins-demo

plugins.gif

Interesting feedback and unanswered questions

  • If plugins cannot be closed is there any confliting corner cases?

    • It turns out that yes, there can be. I got some "plugin already loaded" and "plugin already initialized" error when loading too plugins that were built with the same name... TODO: investigate more on this (results will be posted here).
    • plugin: plugin _/usr/src/pluginSrc/brightness already loaded fatal error: plugin: plugin already loaded
  • When are the plugins coming to Windows?

    • One of the promise of Go is that it runs the same of a large variety of OS and processors, plugins should therefore be ported to Windows. I did not found talks about this, if I do, I'll post it here.

.@GildasChabot explains the concept of plugins in #golang 1.8.#goreleaseparty. First time the language supports dynamic linking. pic.twitter.com/IIKbiTFiL5

— Mailjet Developers (@mailjetdev) February 16, 2017