Repository navigation
v0.1.0 - Initial Release
go-winplugin v0.1.0
Windows-compatible Go plugin system using DLLs and CGO.
Features
- Dynamic DLL generation
- Runtime symbol loading
- Automatic wrapper generation
- Function signature parsing
- Cross-workspace isolated builds
- UUID-based temp workspaces
- Windows plugin support without native Go plugins
- CGO shared library runtime
- Exported function validation
- Runtime DLL loading and invocation
Supported Types
Current support includes:
- int
- string
- void functions
Example
loader, _ := winplugin.NewLoader("./example")
loader.Build("plugin.go")
loader.Call("Execute")Why?
Go plugins are not officially supported on Windows.
This project provides a DLL-based alternative using:
- c-shared
- CGO
- generated wrappers
- runtime symbol loading
Status
Early alpha release.
APIs may change before v1.0.0.
5. Verify Install Works
VERY important.
Test from a totally separate folder:
mkdir test-plugin
cd test-plugin
go mod init test-plugin
go get github.com/RamanSharma100/go-winplugin@v0.1.0Then verify import/build.