Created
November 30, 2018 16:42
-
-
Save Bebbolus/db8eb057f107186ba2d659dbcb2df0bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"os" | |
"fmt" | |
"plugin" | |
) | |
func main() { | |
//open plugin file | |
plug, err := plugin.Open("plugins/first.so") | |
if err != nil { | |
fmt.Println(err) | |
os.Exit(-1) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment