CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -trimpath -o swagger-linux-amd64 main.go
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -trimpath -o swagger-windows-amd64.exe main.go
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w" -trimpath -o swagger-darwin-amd64 main.go
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags "-s -w" -trimpath -o swagger-darwin-arm64 main.go
./swagger-darwin-arm64 -secret 123456 -port 8900
curl -F "file=@docs/example.test.json" \
-F "filename=ttt.json" \
-F "secret=password" \
http://localhost:8900/upload
curl http://localhost:8900/list
curl http://localhost:8900/refresh
nohup ./swagger -secret password >> server.log 2>&1 &