{"id":17311746,"url":"https://github.com/zan8in/goupdate","last_synced_at":"2026-05-01T01:31:39.357Z","repository":{"id":166037146,"uuid":"641468504","full_name":"zan8in/goupdate","owner":"zan8in","description":"Goupdate 是用 Go 语言开发的工具，能够自动从 GitHub 和 Gitee 下载最新的发布版本，并更新本地程序。","archived":false,"fork":false,"pushed_at":"2023-10-17T00:32:44.000Z","size":10037,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T01:14:01.986Z","etag":null,"topics":["gitee","github","golang"],"latest_commit_sha":null,"homepage":"","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/zan8in.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-16T14:29:05.000Z","updated_at":"2023-10-16T14:44:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"4e25ddbc-5dd7-464e-9b02-9a03a1890315","html_url":"https://github.com/zan8in/goupdate","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zan8in/goupdate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zan8in%2Fgoupdate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zan8in%2Fgoupdate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zan8in%2Fgoupdate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zan8in%2Fgoupdate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zan8in","download_url":"https://codeload.github.com/zan8in/goupdate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zan8in%2Fgoupdate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32482460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: 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":["gitee","github","golang"],"created_at":"2024-10-15T12:41:22.645Z","updated_at":"2026-05-01T01:31:39.314Z","avatar_url":"https://github.com/zan8in.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## goupdate\n\nGoupdate 是用 Go 语言开发的工具，能够自动从 GitHub 和 Gitee 下载最新的发布版本，并更新本地程序。\n\n本程序是基于 https://github.com/tj/go-update 进行的分支，进行了额外功能的增强。\n\n## 更新 github\n```go\npackage main\n\nimport (\n\t\"github.com/zan8in/gologger\"\n\t\"github.com/zan8in/goupdate\"\n\t\"github.com/zan8in/goupdate/stores/github\"\n)\n\nfunc main() {\n\n\towner := \"zan8in\"\n\trepo := \"afrog\"\n\tversion := \"2.8.1\"\n\n\tif result, err := github.Update(owner, repo, version); err != nil {\n\t\tgologger.Error().Msg(err.Error())\n\t} else {\n\t\tif result.Status == 2 {\n\t\t\tgologger.Info().Msgf(\"%s %s\", repo, goupdate.LatestVersionTips)\n\t\t} else {\n\t\t\tgologger.Info().Msgf(\"Successfully updated to %s %s\\n\", repo, result.LatestVersion)\n\t\t}\n\t}\n\n}\n\n```\n\n## 更新 gitee\n\n```go\npackage main\n\nimport (\n\t\"github.com/zan8in/gologger\"\n\t\"github.com/zan8in/goupdate\"\n\t\"github.com/zan8in/goupdate/stores/gitee\"\n)\n\nfunc main() {\n\n\towner := \"zanbin\"\n\trepo := \"afrog\"\n\tversion := \"2.8.9\"\n\n\tif result, err := gitee.Update(owner, repo, version); err != nil {\n\t\tgologger.Error().Msg(err.Error())\n\t} else {\n\t\tif result.Status == 2 {\n\t\t\tgologger.Info().Msgf(\"%s %s\", repo, goupdate.LatestVersionTips)\n\t\t} else {\n\t\t\tgologger.Info().Msgf(\"Successfully updated to %s %s\\n\", repo, result.LatestVersion)\n\t\t}\n\t}\n\n}\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzan8in%2Fgoupdate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzan8in%2Fgoupdate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzan8in%2Fgoupdate/lists"}