pebbe / zmq4

A Go interface to ZeroMQ version 4
BSD 2-Clause "Simplified" License
1.17k stars 166 forks source link

Suggestion: Add a NONE flag #199

Open bjubes opened 8 months ago

bjubes commented 8 months ago

Noticed when switching from goczmq this is missing from this library, but present there: https://github.com/zeromq/goczmq/blob/4e50cfc0edc9f02f25eb3b1f6948f0db93749a9b/goczmq.go#L79-L86

It seems it would be idiomatic and clearer to change

sock.SendBytes(msg,0)

to

sock.SendBytes(msg, zmq4.FLAG_NONE)

Thoughts? Would be happy to make PR