Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

plugin Go Plugin Example

A simple app just to try out the new Go plugins.

It simulates drivers for connecting to some databases, so each database should have their own plugin.

Build the plugin(s)

Right now this only works on linux.

go build -buildmode=plugin -o mysql.so mysql.go

Run the program

Linux:

go run main.go

Docker:

docker build -t go-plugin-example . && docker run -ti go-plugin-example

If everything is ok, the output should look like this:

[mysql]: Establishing connection to: http://localhost:3306/
[mysql]: Inserting data: Golang
[mysql]: Getting some data: Gepser

About

A simple example just to try out the new Go plugins.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages