github.com/scottcagno/storage@v1.8.0/pkg/_junk/_lsmtree/encoding/binary/entry.go (about)

     1  package binary
     2  
     3  import "fmt"
     4  
     5  // DataEntry is a key-value data entry
     6  type DataEntry struct {
     7  	Id    int64
     8  	Key   []byte
     9  	Value []byte
    10  }
    11  
    12  // String is the stringer method for a *DataEntry
    13  func (de *DataEntry) String() string {
    14  	return fmt.Sprintf("entry.id=%d, entry.key=%q, entry.value=%q", de.Id, de.Key, de.Value)
    15  }