package
0.8.0
Repository: https://github.com/knqyf263/go-plugin.git
Documentation: pkg.go.dev

# README

Hello World Example

This example shows how to define plugin interfaces, generate Go code and use it.

Generate Go code

A proto file is under ./greeting.

$ protoc --go-plugin_out=. --go-plugin_opt=paths=source_relative greeting/greet.proto 

Compile a plugin

Use TinyGo to compile the plugin to Wasm.

$ go generate main.go

Run

main.go loads the above two plugins.

$ go run main.go
Good morning, go-plugin
Good evening, go-plugin

# Packages