Ai
1 Star 0 Fork 0

saxon134/go-utils

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
saOss.go 699 Bytes
一键复制 编辑 原始数据 按行查看 历史
saxon134 提交于 2023-10-03 16:56 +08:00 . init
package saOss
import "io"
type OssType int8
const (
NullOssType OssType = iota
AliOssType //阿里云
CtOssType //天翼云
)
type SaOss interface {
Upload(destination string, reader io.Reader) error
UploadFromLocalFile(destination string, localPath string) error
Delete(destination string) error
SetUrlRoot(root string)
AddUrlRoot(url string) string
DeleteUrlRoot(url string) string
CopyWithBucket(src, destination string) error
//path不需要http开头
GetTxt(path string) (res string, err error)
//destination已"/"结尾,则会自动加上随机名称,否则直接按照全路径保存
UploadTxt(destination string, v string) (path string, err error)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/saxon134/go-utils.git
git@gitee.com:saxon134/go-utils.git
saxon134
go-utils
go-utils
b2602dc8c3fc

搜索帮助