result
operator in Compare
function GO-E1003The Compare
only allows the following operators as an argument to the result
parameter:
Any other operator would result in runtime panic with the message - "Unknown result op".
clientv3.Compare(clientv3.Value("b"), ">=", "a")
// NOTE: It's not necessary that ">=" changes to ">". This is just an example.
clientv3.Compare(clientv3.Value("b"), ">", "a")