Pie: A toolkit for creating plugins for Go applications

Why is it called pie?

Because if you pronounce API like “a pie”, then all this consuming and serving of APIs becomes a lot more palatable. Also, pies are the ultimate pluggable interface - depending on what’s inside, you can get dinner, dessert, a snack, or even breakfast. Plus, then I get to say that plugins in Go are as easy as… well, you know.

If you have to explain it to your boss, just say it’s an acronym for Plug In Executables. (but it’s not, really)

About Pie

Plugins using this toolkit and the applications managing those plugins communicate via RPC over the plugin application’s Stdin and Stdout.

Functions in this package with the prefix New are intended to be used by the plugin to set up its end of the communication. Functions in this package with the prefix Start are intended to be used by the main application to set up its end of the communication and start a plugin executable.

This thread was posted by one of our members via one of our news source trackers.

Corresponding tweet for this thread:

https://twitter.com/dev_talk/status/1351245163105034250

Share link for this tweet.


Related portal: