test-go-plugin

module
v0.0.0-...-5b9439b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2022 License: Unlicense

README

test-go-plugin

https://github.com/hashicorp/go-plugin を使ってみる

四則演算をプラグイン化し、起動時に使用する演算プラグインを指定して演算を行う。

Example

# build binary
$ make build

# run with plugin_add
$ make run_add

# run with plugin_sub
$ make run_sub

# run with plugin_div
$ make run_div

# run with plugin_mul
$ make run_mul

Environments

  • go 1.18
  • libprotoc 3.19.4
  • protoc-gen-go v1.26.0
  • protoc-gen-go-grpc 1.1.0

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL