积载
(正在开发中)
什么是积载?
积载是用于处理文件系统的go软件包,它支持本地,Amazon S3,Google Cloud Storage,Alicloud OSS
安装
要安装存储,请运行以下命令:
go get github.com/harranali/stowage
入门
本地存储
让我们获取本地文件信息
s := stowage . New ()
// Initiate the local storage
storePath , _ := filepath . Abs ( "./my-base-folder" )
s . InitLocalStorage (stowage. LocalStorageOpts {
RootFolder : storePath ,
})
// Get file information
info , _ := s . LocalStor