{"id":17116443,"url":"https://github.com/dakimura/gomodmrcli","last_synced_at":"2025-03-24T00:52:24.590Z","repository":{"id":137757597,"uuid":"390703337","full_name":"dakimura/gomodmrcli","owner":"dakimura","description":null,"archived":false,"fork":false,"pushed_at":"2021-08-06T04:32:41.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-29T07:26:55.769Z","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/dakimura.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":"2021-07-29T11:36:50.000Z","updated_at":"2021-08-06T04:32:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"032c76a2-d93e-4871-8b9d-31da0d7bcaa6","html_url":"https://github.com/dakimura/gomodmrcli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dakimura%2Fgomodmrcli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dakimura%2Fgomodmrcli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dakimura%2Fgomodmrcli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dakimura%2Fgomodmrcli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dakimura","download_url":"https://codeload.github.com/dakimura/gomodmrcli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245191621,"owners_count":20575248,"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-14T17:48:51.401Z","updated_at":"2025-03-24T00:52:24.563Z","avatar_url":"https://github.com/dakimura.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# modpxycli\n\n[![Build Status](https://github.com/dakimura/gomodmrcli/workflows/Run%20Tests/badge.svg?branch=main)](https://github.com/dakimura/gomodmrcli/actions?query=branch%3Amain)\n[![codecov](https://codecov.io/gh/dakimura/gomodmrcli/branch/main/graph/badge.svg)](https://codecov.io/gh/dakimura/gomodmrcli)\n[![Go Report Card](https://goreportcard.com/badge/github.com/dakimura/gomodmrcli)](https://goreportcard.com/report/github.com/gin-gonic/gin)\n[![GoDoc](https://pkg.go.dev/badge/github.com/dakimura/gomodrmcli?status.svg)](https://pkg.go.dev/github.com/dakimura/gomodmrcli?tab=doc)\n[![Join the chat at https://gitter.im/dakimura/gomodmrcli](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/dakimura/gomodmrcli?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n[![Sourcegraph](https://sourcegraph.com/github.com/dakimura/gomodmrcli/-/badge.svg)](https://sourcegraph.com/github.com/dakimura/gomodmrcli?badge)\n[![Open Source Helpers](https://www.codetriage.com/dakimura/gomodmrcli/badges/users.svg)](https://www.codetriage.com/dakimura/gomodmrcli)\n[![Release](https://img.shields.io/github/release/dakimura/gomodmrcli.svg?style=flat-square)](https://github.com/dakimura/gomodmrcli/releases)\n[![TODOs](https://badgen.net/https/api.tickgit.com/badgen/github.com/dakimura/gomodmrcli)](https://www.tickgit.com/browse?repo=github.com/dakimura/gomodmrcli)\n\n\nAPI client for https://index.golang.org/ and https://proxy.golang.org/\n\n## Installation\n\n```\n$ go get -u github.com/dakimura/gomodmrcli\n```\nand import in your code\n```\nimport \"github.com/dakimura/gomodmrcli\"\n```\n\n## Quick Start\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"time\"\n\n\t\"github.com/dakimura/gomodmrcli\"\n)\n\nfunc main() {\n\tdefaultHttpClient := new(http.Client)\n\t// --- e.g. get dependencies of the module\n\tmodulePath := \"google.golang.org/protobuf\"\n\tmoduleVersion := \"v1.26.0\"\n\tproxyCli := gomodmrcli.NewProxyClient(defaultHttpClient)\n\tmf, _ := proxyCli.Mod(modulePath, moduleVersion, false)\n\n\tfmt.Printf(\"%s@%s is depending on:\\n\", modulePath, moduleVersion)\n\tfor _, req := range mf.Require {\n\t\tfmt.Println(req.Syntax.Token[0])\n\t}\n\n\t// --- e.g. get modules recently synchronized to the official go mod proxy\n\tindexCli := gomodmrcli.NewIndexClient(defaultHttpClient)\n\tindices, _ := indexCli.Index(time.Now().Add(-24*time.Hour), 5, false)\n\n\tfmt.Println()\n\tfmt.Println(\"Recently updated modules are:\")\n\tfor _, index := range indices {\n\t\tfmt.Println(index.Path)\n\t}\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdakimura%2Fgomodmrcli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdakimura%2Fgomodmrcli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdakimura%2Fgomodmrcli/lists"}