(text []byte)
| 166 | } |
| 167 | |
| 168 | func buildTree(text []byte) (*TreeNode, error) { |
| 169 | split, errptr := Split(bytes.NewReader(text)) |
| 170 | tree := Tree(split) |
| 171 | root := Root(tree) |
| 172 | return root, *errptr |
| 173 | } |
| 174 | |
| 175 | // Compares two trees, disregarding the contents of the leaves. |
| 176 | func compareTrees(a, b *TreeNode) bool { |