commit
e5589cc8b2
@ -0,0 +1,2 @@
|
|||||||
|
.idea
|
||||||
|
go.sum
|
||||||
@ -0,0 +1,22 @@
|
|||||||
|
|
||||||
|
## build
|
||||||
|
cd /root
|
||||||
|
rm -rf goMinioUpload
|
||||||
|
git clone https://git.sre.ink/go/goMinioUpload.git
|
||||||
|
cd goMinioUpload
|
||||||
|
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on GOPROXY="https://goproxy.cn,direct" go build -v -a -o mupload main.go
|
||||||
|
|
||||||
|
|
||||||
|
## deploy
|
||||||
|
cd /usr/bin/
|
||||||
|
rm -rf /usr/bin/mupload
|
||||||
|
rz
|
||||||
|
chmod +x /usr/bin/mupload
|
||||||
|
|
||||||
|
## usage
|
||||||
|
chmod +x /usr/bin/mupload
|
||||||
|
mupload test.txt
|
||||||
|
|
||||||
|
## build for arm64
|
||||||
|
CGO_ENABLED=0 GOARM=7 GOOS=linux GOARCH=arm64 GO111MODULE=on GOPROXY="https://goproxy.cn,direct" go build -v -a -o mupload main.go
|
||||||
|
|
||||||
@ -0,0 +1,19 @@
|
|||||||
|
module goMinioUpload
|
||||||
|
|
||||||
|
go 1.18
|
||||||
|
|
||||||
|
require (
|
||||||
|
github.com/json-iterator/go v1.1.9 // indirect
|
||||||
|
github.com/klauspost/cpuid v1.2.3 // indirect
|
||||||
|
github.com/minio/md5-simd v1.1.0 // indirect
|
||||||
|
github.com/minio/minio-go/v6 v6.0.57 // indirect
|
||||||
|
github.com/minio/sha256-simd v0.1.1 // indirect
|
||||||
|
github.com/mitchellh/go-homedir v1.1.0 // indirect
|
||||||
|
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 // indirect
|
||||||
|
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742 // indirect
|
||||||
|
golang.org/x/crypto v0.0.0-20190513172903-22d7a77e9e5f // indirect
|
||||||
|
golang.org/x/net v0.0.0-20190522155817-f3200d17e092 // indirect
|
||||||
|
golang.org/x/sys v0.0.0-20190422165155-953cdadca894 // indirect
|
||||||
|
golang.org/x/text v0.3.0 // indirect
|
||||||
|
gopkg.in/ini.v1 v1.42.0 // indirect
|
||||||
|
)
|
||||||
Loading…
Reference in new issue