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