dump writes the contents of the node to STDERR for debugging purposes. * func (n *node) dump() { // Write node header. var typ = "branch" if n.isLeaf { typ = "leaf" } warnf("[NODE %d {type=%s count=%d}]", n.pgid, typ, len(n.inodes)) // Write out abbreviated version of each item. for _, ite
(left, right []byte)
| 526 | */ |
| 527 | |
| 528 | func compareKeys(left, right []byte) int { |
| 529 | return bytes.Compare(left, right) |
| 530 | } |
| 531 | |
| 532 | type nodes []*node |
| 533 |