зеркало из https://github.com/golang/leveldb.git
Add canonical import paths.
This commit is contained in:
Родитель
76479d902a
Коммит
09b3377ad9
|
@ -3,7 +3,7 @@
|
|||
// license that can be found in the LICENSE file.
|
||||
|
||||
// Package bloom implements Bloom filters.
|
||||
package bloom
|
||||
package bloom // import "github.com/golang/leveldb/bloom"
|
||||
|
||||
// Filter is an encoded set of []byte keys.
|
||||
type Filter []byte
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// To calculate the uint32 checksum of some data:
|
||||
// var u uint32 = crc.New(data).Value()
|
||||
// In leveldb, the uint32 value is then stored in little-endian format.
|
||||
package crc
|
||||
package crc // import "github.com/golang/leveldb/crc"
|
||||
|
||||
import (
|
||||
"hash/crc32"
|
||||
|
|
2
db/db.go
2
db/db.go
|
@ -29,7 +29,7 @@
|
|||
// db := memdb.New(&db.Options{
|
||||
// Comparer: myComparer,
|
||||
// })
|
||||
package db
|
||||
package db // import "github.com/golang/leveldb/db"
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
// Package leveldb provides an ordered key/value store.
|
||||
//
|
||||
// BUG: This package is incomplete.
|
||||
package leveldb
|
||||
package leveldb // import "github.com/golang/leveldb"
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
// deleted or values are updated with shorter slices. Callers of the package
|
||||
// are responsible for explicitly compacting a MemDB into a separate DB
|
||||
// (whether in-memory or on-disk) when appropriate.
|
||||
package memdb
|
||||
package memdb // import "github.com/golang/leveldb/memdb"
|
||||
|
||||
import (
|
||||
"encoding/binary"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
//
|
||||
// It can be useful for tests, and also for LevelDB instances that should not
|
||||
// ever touch persistent storage, such as a web browser's private browsing mode.
|
||||
package memfs
|
||||
package memfs // import "github.com/golang/leveldb/memfs"
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
// The wire format allows for limited recovery in the face of data corruption:
|
||||
// on a format error (such as a checksum mismatch), the reader moves to the
|
||||
// next block and looks for the next full or first chunk.
|
||||
package record
|
||||
package record // import "github.com/golang/leveldb/record"
|
||||
|
||||
// TODO: implement the recovery algorithm.
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ To write a table with three entries:
|
|||
}
|
||||
return w.Close()
|
||||
*/
|
||||
package table
|
||||
package table // import "github.com/golang/leveldb/table"
|
||||
|
||||
/*
|
||||
The table file format looks like:
|
||||
|
|
Загрузка…
Ссылка в новой задаче