@@ -258,8 +258,8 @@ func badgerIterate(it Iterator, prefix []byte, fn func(bucket, key, value []byte
258258 return badgerKey , nil
259259}
260260
261- // badgerEncode encodes a byte slice into a section of a BadgerKey.
262- // See documentation for toBadgerKey.
261+ // badgerEncode encodes a byte slice into a section of a BadgerKey. See
262+ // documentation for toBadgerKey.
263263func badgerEncode (val []byte ) ([]byte , error ) {
264264 l := len (val )
265265 switch {
@@ -301,19 +301,19 @@ func parseBadgerEncode(bk []byte) (value, rest []byte) {
301301 }
302302}
303303
304- // isBadgerTable returns True if the slice is a badgerTable token, false otherwise.
305- // badgerTable means that the slice contains only the [size|value] of one section
306- // of a badgerKey and no remainder. A badgerKey is [buket |key], while a badgerTable
307- // is only the bucket section.
304+ // isBadgerTable returns True if the slice is a badgerTable token, false
305+ // otherwise. badgerTable means that the slice contains only the [size|value] of
306+ // one section of a badgerKey and no remainder. A badgerKey is [bucket |key],
307+ // while a badgerTable is only the bucket section.
308308func isBadgerTable (bk []byte ) bool {
309309 if k , rest := parseBadgerEncode (bk ); len (k ) > 0 && len (rest ) == 0 {
310310 return true
311311 }
312312 return false
313313}
314314
315- // fromBadgerKey returns the bucket and key encoded in a BadgerKey.
316- // See documentation for toBadgerKey.
315+ // fromBadgerKey returns the bucket and key encoded in a BadgerKey. See
316+ // documentation for toBadgerKey.
317317func fromBadgerKey (bk []byte ) ([]byte , []byte , error ) {
318318 bucket , rest := parseBadgerEncode (bk )
319319 if len (bucket ) == 0 || len (rest ) == 0 {
0 commit comments