【文件属性】:
文件名称:磁盘存储:ez磁盘存储驱动程序
文件大小:6KB
文件格式:ZIP
更新时间:2021-02-20 02:13:53
Go
前驱磁盘存储
该软件包提供了实现,用于基于磁盘的简单存储。 使用磁盘存储时,键对应于存储路径内的文件名。
用法
package main
import (
disk "github.com/maedan/disk-storage"
"github.com/maedan/storage"
)
func main () {
diskStorage , _ := disk . Disk ( "mystore" , & disk. StringMarshaler {})
s := storage . Strings ( diskStorage )
s . Write ( "hw.txt" , "hello world" )
s . Write ( "another-file" , "also hello world" )
}
该自述文件正在进行中。 感谢您的耐心等待!
【文件预览】:
disk-storage-develop
----go.mod(158B)
----strings.go(446B)
----disk.go(3KB)
----error.go(624B)
----go.sum(1KB)
----LICENSE.txt(1KB)
----entry.go(2KB)
----README.md(606B)
----disk_test.go(3KB)