Transfer
主要用于临时上传和下载,支持分享给他人。此项目是Transfer
项目后台 API.
go get -u github.com/cosmtrek/air
go get -u github.com/google/wire/cmd/wire
go get -u github.com/swaggo/swag/cmd/swag
- air -- Live reload for Go apps
- wire -- Compile-time Dependency Injection for Go
- swag -- Automatically generate RESTful API documentation with Swagger 2.0 for Go.
- Gin -- The fastest full-featured web framework for Go.
- GORM -- The fantastic ORM library for Golang
- Casbin -- An authorization library that supports access control models like ACL, RBAC, ABAC in Golang
- Wire -- Compile-time Dependency Injection for Go
cd transfer
go build
transfer -h
transfer file to minio API
Usage:
transfer [flags]
Flags:
--config string config file (default is $HOME/.transfer.yaml)
-h, --help help for transfer
-t, --toggle Help message for toggle