MCPcopy Create free account
hub / github.com/peterbourgon/diskv / btreeString

Struct btreeString

index.go:23–26  ·  view source on GitHub ↗

btreeString is a custom data type that satisfies the BTree Less interface, making the strings it wraps sortable by the BTree package.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected