Update go dependencies

This commit is contained in:
Manuel Alejandro de Brito Fontes 2019-06-24 09:07:24 -04:00
parent 535d806676
commit a662db5366
No known key found for this signature in database
GPG key ID: 786136016A8BA02A
270 changed files with 13455 additions and 5291 deletions

View file

@ -584,6 +584,12 @@ func (q *Quantity) Neg() {
q.d.Dec.Neg(q.d.Dec)
}
// Equal checks equality of two Quantities. This is useful for testing with
// cmp.Equal.
func (q Quantity) Equal(v Quantity) bool {
return q.Cmp(v) == 0
}
// int64QuantityExpectedBytes is the expected width in bytes of the canonical string representation
// of most Quantity values.
const int64QuantityExpectedBytes = 18