https://github.com/clevergo/plugins
Go plugins manager
https://github.com/clevergo/plugins
go golang plugin plugin-manager plugins plugins-manager
Last synced: 14 days ago
JSON representation
Go plugins manager
- Host: GitHub
- URL: https://github.com/clevergo/plugins
- Owner: clevergo
- License: mit
- Created: 2020-06-22T13:56:56.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-10T04:42:13.000Z (over 5 years ago)
- Last Synced: 2025-03-08T02:41:31.216Z (12 months ago)
- Topics: go, golang, plugin, plugin-manager, plugins, plugins-manager
- Language: Go
- Homepage: https://clevergo.tech
- Size: 8.79 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go plugins manager
[](https://travis-ci.org/clevergo/plugins)
[](https://coveralls.io/github/clevergo/plugins)
[](https://pkg.go.dev/clevergo.tech/plugins?tab=doc)
[](https://goreportcard.com/report/github.com/clevergo/plugins)
[](https://github.com/clevergo/plugins/releases)
[](https://pkg.clevergo.tech/clevergo.tech/plugins)
[](https://t.me/clevergotech)
[](https://forum.clevergo.tech)
The `plugins` is a simple Go plugins manager.
## Installation
```shell
$ go get -u clevergo.tech/plugins
```
## Usage
```go
// 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")
```