BoltDBKey/Value 数据存储系统
Bolt 是一个使用 Go 语言开发的低级 Key/Value 数据存储系统,简单、快速而且可靠。
示例代码:
package main
import (
"log"
"github.com/boltdb/bolt"
)
func main() {
// Open the my.db data file in your current directory.
// It will be created if it doesn't exist.
db, err := bolt.Open("my.db", 0600, nil)
if err != nil {
log.Fatal(err)
}
defer db.Close()
...
}评论
