mirror of
https://github.com/geektutu/7days-golang.git
synced 2024-04-21 12:32:11 +00:00
19 lines
198 B
Go
Executable File
19 lines
198 B
Go
Executable File
package geebolt
|
|
|
|
import "os"
|
|
|
|
type DB struct {
|
|
data []byte
|
|
file *os.File
|
|
}
|
|
|
|
const maxMapSize = 1 << 31
|
|
|
|
func (db *DB) mmap(sz int) error {
|
|
b, err := syscall.Mmap()
|
|
}
|
|
|
|
func Open(path string) {
|
|
|
|
}
|