Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 467 Bytes

README.md

File metadata and controls

16 lines (13 loc) · 467 Bytes

命令行格式

安装依赖

go mod tidy

上传文件

go run main.go -action upload -bucket your-s3-bucket-name -file path/to/your/file -access your-access-key-id -secret your-secret-key -region ap-northeast-1

下载文件

go run main.go -action download -bucket your-s3-bucket-name -file path/to/your/object -output path/to/local/file -access your-access-key-id -secret your-secret-key -region ap-northeast-1