Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Added 0MQ Version example in Go #201

Merged
merged 1 commit into from

2 participants

@kavu

Just a simple example in Go.

@hintjens hintjens merged commit 95620be into imatix:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 9, 2012
  1. @kavu

    Added 0MQ Version example in Go

    kavu authored
This page is out of date. Refresh to see the latest.
Showing with 17 additions and 0 deletions.
  1. +17 −0 examples/Go/version.go
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)
+}
Something went wrong with that request. Please try again.