{"id":17296622,"url":"https://github.com/xxl6097/go-upload","last_synced_at":"2025-07-07T04:02:07.494Z","repository":{"id":215268128,"uuid":"738512322","full_name":"xxl6097/go-upload","owner":"xxl6097","description":"文件上传","archived":false,"fork":false,"pushed_at":"2024-08-01T06:35:15.000Z","size":106840,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-03T09:27:29.444Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xxl6097.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-03T11:56:07.000Z","updated_at":"2024-08-01T06:35:13.000Z","dependencies_parsed_at":"2024-03-26T07:24:50.289Z","dependency_job_id":"7a41b07e-14b8-4a5c-a7d3-4b36a258b9b3","html_url":"https://github.com/xxl6097/go-upload","commit_stats":null,"previous_names":["xxl6097/go-upload"],"tags_count":47,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxl6097%2Fgo-upload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxl6097%2Fgo-upload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxl6097%2Fgo-upload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxl6097%2Fgo-upload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xxl6097","download_url":"https://codeload.github.com/xxl6097/go-upload/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245733795,"owners_count":20663584,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T11:13:22.862Z","updated_at":"2025-03-26T20:42:50.194Z","avatar_url":"https://github.com/xxl6097.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\ngit add .\ngit commit -m \"release v1.1.26\"\ngit tag -a v1.1.26 -m \"release v1.1.26\"\ngit push origin v1.1.26\n\n\n## 注意\n如果要定义 static server文件服务器，那么 static router必须放在assets前面初始化，不然报错404\n\n## 添加依赖\n\n\n```shell\ngo get -u github.com/mdp/qrterminal/v3 v3.0.0\n\ngo get -u github.com/wechaty/go-wechaty\ngo get -u github.com/xxl6097/go-glog@v0.0.6\ngo get -u github.com/xxl6097/go-http@v0.0.7\n\ngo get -u github.com/gorilla/mux\n\ngo get -u github.com/google/uuid\n\ngo get -u github.com/dgrijalva/jwt-go\n\ngo get -u gopkg.in/yaml.v3\ngo get -u golang.org/x/crypto\n\n```\n\n```azure\ncurl -F \"file=@/Users/uuxia/Desktop/work/code/go/go-upload/main.go\" -F \"token=55\" http://localhost:5555/upload\n\ncurl -F \"files=@/Users/uuxia/Desktop/work/code/go/go-upload/main.go\" -F \"token=het002402\" http://uuxia.cn:8087/upload\n\ncurl -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\n\n\n```\n\n```azure\ncurl -F \"file=@$1\" -F \"token=$2\" https://uuxia.cn/v1/api/file/upfile\n\n```\n\n\ndocker-compose.yaml\n\n```yaml\nversion: \"3.3\"\nservices:\n  homepage:\n    image: xxl6097/go-upload:0.0.2\n    restart: no\n    container_name: go-upload\n    ports:\n      - 3008:8087\n    volumes:\n      - ./conf/files:/app/files\n    environment:\n      ENV_PORT: 8087\n      ENV_TOKEN: het002402\n\n```\n\n\ncurl -F \"file=@./teamide\" -F \"token=het002402\" http://uuxia.cn:8087/upload\n\n\nbash \u003c(curl -s -S -L http://uuxia.cn:8086/up) ./bin/${appname}_v${version}_linux_mipsle\n\n### 指令上传示例：\n```shell\ncurl -F \"file=@/root/xxx.log\" -F \"token=44\" http://localhost:4444/upload\n```\n\nbash \u003c(curl -s -S -L http://uuxia.cn:8087/files/2024/03/12/test.sh)  /Users/uuxia/Desktop/work/code/go/go-upload/go.mod\n\n```ssh\nssh -T git@github.com\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxxl6097%2Fgo-upload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxxl6097%2Fgo-upload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxxl6097%2Fgo-upload/lists"}