diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-11-26 15:07:31 +0100 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-11-26 15:07:31 +0100 |
commit | 14cb7cace94190e475db1b2833dd9d7ba116e63f (patch) | |
tree | c13f4b9480b1ff6e7b6cb82bca3ace1bfd1fa006 /cmd/mt-build-plugin/build.go | |
parent | fc8e6afd03ba186cd52a138a0620e4769e49ee68 (diff) |
mt-build-plugin: print version
Diffstat (limited to 'cmd/mt-build-plugin/build.go')
-rw-r--r-- | cmd/mt-build-plugin/build.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/cmd/mt-build-plugin/build.go b/cmd/mt-build-plugin/build.go new file mode 100644 index 0000000..b316c04 --- /dev/null +++ b/cmd/mt-build-plugin/build.go @@ -0,0 +1,23 @@ +/* +mt-build-plugin builds a plugin using the proxy version the tool was built for. + +Usage: + + mt-build-plugin +*/ +package main + +import ( + "log" + + proxy "github.com/HimbeerserverDE/mt-multiserver-proxy" +) + +func main() { + version, ok := proxy.Version() + if !ok { + log.Fatal("unable to retrieve proxy version") + } + + log.Println("version:", version) +} |