NewHash return a new Hash from a hexadecimal hash representation
(s string)
| 24 | |
| 25 | // NewHash return a new Hash from a hexadecimal hash representation |
| 26 | func NewHash(s string) Hash { |
| 27 | b, _ := hex.DecodeString(s) |
| 28 | |
| 29 | var h Hash |
| 30 | copy(h[:], b) |
| 31 | |
| 32 | return h |
| 33 | } |
| 34 | |
| 35 | func (h Hash) IsZero() bool { |
| 36 | var empty Hash |
no outgoing calls
searching dependent graphs…