Skip to content

clevergo/plugins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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")