{"id":42726977,"url":"https://github.com/gonejack/gex","last_synced_at":"2026-01-29T16:43:39.483Z","repository":{"id":57638627,"uuid":"430965813","full_name":"gonejack/gex","owner":"gonejack","description":"Golang http file download library with http range support. ","archived":false,"fork":false,"pushed_at":"2023-03-23T03:43:13.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-07-27T22:09:42.800Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gonejack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-23T05:04:12.000Z","updated_at":"2021-12-15T06:14:05.000Z","dependencies_parsed_at":"2023-01-23T16:00:41.951Z","dependency_job_id":null,"html_url":"https://github.com/gonejack/gex","commit_stats":null,"previous_names":[],"tags_count":4,"template":null,"template_full_name":null,"purl":"pkg:github/gonejack/gex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gonejack%2Fgex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gonejack%2Fgex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gonejack%2Fgex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gonejack%2Fgex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gonejack","download_url":"https://codeload.github.com/gonejack/gex/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gonejack%2Fgex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28881008,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T16:41:59.663Z","status":"ssl_error","status_checked_at":"2026-01-29T16:39:39.641Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-01-29T16:43:39.419Z","updated_at":"2026-01-29T16:43:39.477Z","avatar_url":"https://github.com/gonejack.png","language":"Go","readme":"# gex\nGoland http file download library with http range support.\n\n[![GitHub license](https://img.shields.io/github/license/gonejack/gex.svg?color=blue)](LICENSE)\n\n### Install\n```shell\n\u003e go get github.com/gonejack/gex\n```\n\n### Usage\nsingle task\n```go\nfunc TestSingle(t *testing.T) {\n    task := gex.NewTask(\"https://wx2.sinaimg.cn/large/008h3uCply1gtumw52q7aj31nj27enk8.jpg\")\n    task.SetTimeout(time.Second * 10)\n    err := task.Do(context.TODO())\n    if err == nil {\n        println(humanize.IBytes(uint64(task.Result().Transfer())))\n        println(task.Result().Transfer())\n    }\n}\n```\n\nbatch tasks\n```go\nfunc TestMany(t *testing.T) {\n    t1 := gex.NewTask(\"https://wx2.sinaimg.cn/large/008h3uCply1gtumw52q7aj31nj27enk8.jpg\")\n    t2 := gex.NewTask(\"https://wx1.sinaimg.cn/large/002MwiQagy1gwmv16ypycj60dcatwe8102.jpg\")\n    \n    var bat gex.Batch\n    \n    bat.Add(t1, t2)\n    bat.Run()\n    \n    t.Log(t1.Result())\n    t.Log(t2.Result().Err)\n    t.Log(t2.Result().Time())\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgonejack%2Fgex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgonejack%2Fgex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgonejack%2Fgex/lists"}