Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1.52 KB

README.md

File metadata and controls

32 lines (25 loc) · 1.52 KB

Go plugins manager

Build Status Coverage Status Go.Dev reference Go Report Card Release Downloads Chat Community

The plugins is a simple Go plugins manager.

Installation

$ go get -u clevergo.tech/plugins

Usage

// Plugins location.
path := "/path/to/plugins"
// Creates a plugins manager.
m := plugins.New(path)

// Opens a Go plugins which located at {path}/foo.so
p, err := m.Open("foo.so")

// Lookup a symbol in a plugin.
sym, err := m.Lookup("foo.so", "Bar")