Bolt是一个使用Go语言开发的低级Key/Value数据存储系统,简单、快速而且可靠。
示例代码:
package mainimport ( "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() ...}
评论