Skip to content

rsc/ordered

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ordered defines an encoding of a sequence of basic typed values into []byte and back. The encoding is “ordered” in the sense that bytes.Compare on the byte slices matches cmp.Compare on the original values. The order-preserving encoding is particularly useful for preparing keys in an ordered key/value storage such as Bigtable, Bolt, CockroachDB, LevelDB, Pebble, RocksDB, or Spanner.

This package is inspired by github.com/google/orderedcode but uses a different, self-describing encoding.

See the package documentation for details and examples.

About

Ordered codes for database keys

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages