Build go-hello-plugins-plus-M.m.P-I.x86_64.rpm
and go-hello-plugins-plus_M.m.P-I_amd64.deb
where "M.m.P-I" is Major.minor.Patch-Iteration.
NOTE: Work in progress
A simple "hello world" style program. The purpose of the repository it to show how to:
- Use a
go-hello-plugins-plus.conf
JSON file that describes plugins- Command line option
- `./go-hello-plugins-plus.conf' (i.e. local directory)
- `/etc/go-hello-plugins-plus.conf'
- Each plugin has its own "docopt"
go-hello-plugins-plus
export GOPATH="${HOME}/go"
export PATH="${PATH}:${GOPATH}/bin:/usr/local/go/bin"
export PROJECT_DIR=${GOPATH}/src/github.com/docktermj
mkdir -p ${PROJECT_DIR}
cd ${PROJECT_DIR}
git clone git@github.com:docktermj/go-hello-plugins-plus.git
go get github.com/docopt/docopt-go
go get github.com/hashicorp/go-plugin
Build plugins
go install github.com/docktermj/go-hello-plugins-plus/plugin/greeter/greeter-english
go install github.com/docktermj/go-hello-plugins-plus/plugin/greeter/greeter-german
go install github.com/docktermj/go-hello-plugins-plus/plugin/greeter/greeter-italian
go install github.com/docktermj/go-hello-plugins-plus/plugin/hello/hello-english
go install github.com/docktermj/go-hello-plugins-plus/plugin/hello/hello-german
go install github.com/docktermj/go-hello-plugins-plus/plugin/hello/hello-italian
Build program
go install github.com/docktermj/go-hello-plugins-plus
The results will be in the ${GOPATH}/bin
directory.
cd ${PROJECT_DIR}/go-hello-plugins-plus
make build
The results will be in the .../target
directory.
Example distributions: openSUSE, Fedora, CentOS, Mandrake
Example:
sudo rpm -ivh go-hello-plugins-plus-M.m.P-I.x86_64.rpm
Example:
sudo rpm -Uvh go-hello-plugins-plus-M.m.P-I.x86_64.rpm
Example distributions: Ubuntu
Example:
sudo dpkg -i go-hello-plugins-plus_M.m.P-I_amd64.deb
make clean