Go的文件系统抽象层,支持S3和本地文件系统-Golang开发

时间:2021-05-26 17:46:23
【文件属性】:
文件名称:Go的文件系统抽象层,支持S3和本地文件系统-Golang开发
文件大小:28KB
文件格式:ZIP
更新时间:2021-05-26 17:46:23
Golang Miscellaneous 用于Golang的Gost文件系统抽象层,可与本地文件系统和具有统一API的Amazon S3一起使用。 您甚至可以从不同来源复制粘贴文件。 FTP,Dropbox等将很快推出。 适用于Golang的Quick Examp Gost文件系统抽象层,可与本地文件系统和具有统一API的Amazon S3一起使用。 您甚至可以从不同来源复制粘贴文件。 FTP,Dropbox等将很快推出。 快速示例import“ github.com/usmanhalalit/gost/s3” //初始化文件系统fs,err:= s3.New(s3.Config {your-aws-credentials})//阅读注释,err:= fs.File (“ my-note.txt”)。ReadString()//写入错误:= fs.File(“ another-note.txt”)。WriteString(“ another note”)//可以自然遍历
【文件预览】:
gost-master
----local()
--------object.go(632B)
--------directory_test.go(749B)
--------directory.go(1KB)
--------file.go(2KB)
--------file_test.go(2KB)
--------local.go(558B)
--------profile.coverprofile(3KB)
----.gitignore(19B)
----go.mod(308B)
----mocks()
--------S3API.go(205KB)
--------ReadWriteCloseSeeker.go(2KB)
--------fixtures()
----gost.go(2KB)
----.travis.yml(587B)
----LICENSE(1KB)
----go.sum(3KB)
----.github()
--------FUNDING.yml(21B)
----Readme.md(5KB)
----s3()
--------s3_test.go(6KB)
--------directory.go(3KB)
--------s3.go(1KB)
--------file.go(3KB)
--------profile.coverprofile(12B)

网友评论