golang-plugins

A simple demo of hot code swapping with Go 1.8 and its plugins feature.

  • Owner: campoy/golang-plugins
  • Platform:
  • License:: Apache License 2.0
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

golang-plugins

golang-plugins uses the new plugin feature of Go 1.8 to
implement hot code swapping in Go.

This is highly experimental and just a way for me to learn
how plugins work and what limitations I find.

Run this program and then try editing, adding, or removing
files in the plugins directory.

go run main.go

The entry point to the plugins is the Run function, that
doesn't receive any parameters and returns an error.

Limitations:

  • This only works on Linux.
  • We poll regularly the plugins directory instead of using fsnotify.
  • We recompile every time, even if the code has not changed.
  • This causes a continuously growing memory requirement (memory leak?).

Disclaimer

This is not an official Google product (experimental or otherwise), it is just
code that happens to be owned by Google.

Main metrics

Overview
Name With Ownercampoy/golang-plugins
Primary LanguageGo
Program languageGo (Language Count: 1)
Platform
License:Apache License 2.0
所有者活动
Created At2017-02-04 13:28:55
Pushed At2017-04-03 19:10:53
Last Commit At2017-04-03 12:10:52
Release Count0
用户参与
Stargazers Count248
Watchers Count11
Fork Count18
Commits Count6
Has Issues Enabled
Issues Count1
Issue Open Count1
Pull Requests Count1
Pull Requests Open Count0
Pull Requests Close Count1
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private