btreeString is a custom data type that satisfies the BTree Less interface, making the strings it wraps sortable by the BTree package.
| 21 | // btreeString is a custom data type that satisfies the BTree Less interface, |
| 22 | // making the strings it wraps sortable by the BTree package. |
| 23 | type btreeString struct { |
| 24 | s string |
| 25 | l LessFunction |
| 26 | } |
| 27 | |
| 28 | // Less satisfies the BTree.Less interface using the btreeString's LessFunction. |
| 29 | func (s btreeString) Less(i btree.Item) bool { |
nothing calls this directly
no outgoing calls
no test coverage detected