Added 0MQ Version example in Go #201

Merged
merged 1 commit into from May 9, 2012
+17 −0
View
17 examples/Go/version.go
@@ -0,0 +1,17 @@
+//
+// 0MQ version example.
+//
+// Author: Max Riveiro <kavu13@gmail.com>
+// Requires: http://github.com/alecthomas/gozmq
+//
+package main
+
+import (
+ "fmt"
+ zmq "github.com/alecthomas/gozmq"
+)
+
+func main() {
+ major, minor, patch := zmq.Version()
+ fmt.Printf("Current 0MQ version is %d.%d.%d\n", major, minor, patch)
+}