func TestVersion(t *testing.T) { major, _, _ := zmq.Version() if major != 3 { t.Errorf("Expected major version 3, got %d", major) } }
func main() { major, minor, patch := zmq.Version() fmt.Printf("Current 0MQ version is %d.%d.%d\n", major, minor, patch) }