uint64ToBytes is a helper function that converts an uint64 to a byte slice
(val []byte)
| 254 | |
| 255 | // uint64ToBytes is a helper function that converts an uint64 to a byte slice |
| 256 | func bytesToUint64(val []byte) uint64 { |
| 257 | return binary.BigEndian.Uint64(val) |
| 258 | } |
| 259 | |
| 260 | func check(f func() error) { |
| 261 | if err := f(); err != nil { |
no outgoing calls