possibly idiomatic implementation of czmq in go