# README
git add . git commit -m "release v1.1.26" git tag -a v1.1.26 -m "release v1.1.26" git push origin v1.1.26
注意
如果要定义 static server文件服务器,那么 static router必须放在assets前面初始化,不然报错404
添加依赖
go get -u github.com/mdp/qrterminal/v3 v3.0.0
go get -u github.com/wechaty/go-wechaty
go get -u github.com/xxl6097/[email protected]
go get -u github.com/xxl6097/[email protected]
go get -u github.com/gorilla/mux
go get -u github.com/google/uuid
go get -u github.com/dgrijalva/jwt-go
go get -u gopkg.in/yaml.v3
go get -u golang.org/x/crypto
curl -F "file=@/Users/uuxia/Desktop/work/code/go/go-upload/main.go" -F "token=55" http://localhost:5555/upload
curl -F "files=@/Users/uuxia/Desktop/work/code/go/go-upload/main.go" -F "token=het002402" http://uuxia.cn:8087/upload
curl -F "file=@/Users/uuxia/Desktop/work/code/go/go-upload/main.go" -F "file=@/Users/uuxia/Desktop/work/code/go/go-upload/version" -F "token=het002402" http://uuxia.cn:8087/upload
curl -F "file=@$1" -F "token=$2" https://uuxia.cn/v1/api/file/upfile
docker-compose.yaml
version: "3.3"
services:
homepage:
image: xxl6097/go-upload:0.0.2
restart: no
container_name: go-upload
ports:
- 3008:8087
volumes:
- ./conf/files:/app/files
environment:
ENV_PORT: 8087
ENV_TOKEN: het002402
curl -F "file=@./teamide" -F "token=het002402" http://uuxia.cn:8087/upload
bash <(curl -s -S -L http://uuxia.cn:8086/up) ./bin/${appname}_v${version}_linux_mipsle
指令上传示例:
curl -F "file=@/root/xxx.log" -F "token=44" http://localhost:4444/upload
bash <(curl -s -S -L http://uuxia.cn:8087/files/2024/03/12/test.sh) /Users/uuxia/Desktop/work/code/go/go-upload/go.mod
ssh -T [email protected]
# Functions
No description provided by the author
go get -u golang.org/x/[email protected].