{"id":13367195,"url":"https://github.com/andygrunwald/Go-trending","last_synced_at":"2025-03-12T18:32:05.292Z","repository":{"id":34580112,"uuid":"38526780","full_name":"andygrunwald/go-trending","owner":"andygrunwald","description":"Go library for accessing trending repositories and developers at Github.","archived":false,"fork":false,"pushed_at":"2024-05-01T09:37:06.000Z","size":539,"stargazers_count":141,"open_issues_count":0,"forks_count":19,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-10-25T05:25:18.204Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"http://godoc.org/github.com/andygrunwald/go-trending","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/andygrunwald.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"andygrunwald","custom":"https://paypal.me/andygrunwald"}},"created_at":"2015-07-04T08:06:48.000Z","updated_at":"2024-10-03T18:12:39.000Z","dependencies_parsed_at":"2023-02-16T10:10:26.135Z","dependency_job_id":"3ca187f7-43e3-47b0-a8bb-5bc476a4fe92","html_url":"https://github.com/andygrunwald/go-trending","commit_stats":{"total_commits":133,"total_committers":8,"mean_commits":16.625,"dds":"0.22556390977443608","last_synced_commit":"45fce191992f9304c1a4218811ddf0ccd792157a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andygrunwald%2Fgo-trending","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andygrunwald%2Fgo-trending/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andygrunwald%2Fgo-trending/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andygrunwald%2Fgo-trending/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andygrunwald","download_url":"https://codeload.github.com/andygrunwald/go-trending/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243271509,"owners_count":20264466,"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":["hacktoberfest"],"created_at":"2024-07-30T00:01:41.146Z","updated_at":"2025-03-12T18:32:04.997Z","avatar_url":"https://github.com/andygrunwald.png","language":"Go","funding_links":["https://github.com/sponsors/andygrunwald","https://paypal.me/andygrunwald"],"categories":["第三方 APIs"],"sub_categories":["高级控制台界面","高級控制台界面"],"readme":"# go-trending\n\n[![GoDoc](https://godoc.org/github.com/andygrunwald/go-trending?status.svg)](https://godoc.org/github.com/andygrunwald/go-trending)\n[![Go Report Card](https://goreportcard.com/badge/github.com/andygrunwald/go-trending)](https://goreportcard.com/report/github.com/andygrunwald/go-trending)\n\nA package to retrieve [trending repositories](https://github.com/trending) and [developers](https://github.com/trending/developers) from Github written in [Go](https://go.dev/).\n\n[![trending package showcase](./img/go-trending-shrinked.png \"trending package showcase\")](https://raw.githubusercontent.com/andygrunwald/go-trending/master/img/go-trending-shrinked.png)\n\n## Features\n\n* Get trending repositories\n* Get trending developers\n* Get all programming languages known by GitHub\n* Filtering by time and (programming) language\n* Support for [GitHub Enterprise](https://enterprise.github.com/)\n\n## Installation\n\nIt is go gettable\n\n    $ go get github.com/andygrunwald/go-trending\n\nor using/updating to the latest master\n\n\t$ go get -u github.com/andygrunwald/go-trending@master\n\n## API\n\nPlease have a look at the [package documentation](https://pkg.go.dev/github.com/andygrunwald/go-trending) for a detailed API description.\n\n## Examples\n\nA few examples how the API can be used.\nMore examples are available in the [GoDoc examples section](https://pkg.go.dev/github.com/andygrunwald/go-trending#readme-examples).\n\n### List trending repositories of today for all languages\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/andygrunwald/go-trending\"\n)\n\nfunc main() {\n\ttrend := trending.NewTrending()\n\n\t// Show projects of today\n\tprojects, err := trend.GetProjects(trending.TimeToday, \"\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfor index, project := range projects {\n\t\ti := index + 1\n\t\tif len(project.Language) \u003e 0 {\n\t\t\tfmt.Printf(\"%d: %s (written in %s with %d ★ )\\n\", i, project.Name, project.Language, project.Stars)\n\t\t} else {\n\t\t\tfmt.Printf(\"%d: %s (with %d ★ )\\n\", i, project.Name, project.Stars)\n\t\t}\n\t}\n}\n```\n\n### List trending repositories of this week for Go\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/andygrunwald/go-trending\"\n)\n\nfunc main() {\n\ttrend := trending.NewTrending()\n\n\t// Show projects of today\n\tprojects, err := trend.GetProjects(trending.TimeWeek, \"go\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfor index, project := range projects {\n\t\ti := index + 1\n\t\tif len(project.Language) \u003e 0 {\n\t\t\tfmt.Printf(\"%d: %s (written in %s with %d ★ )\\n\", i, project.Name, project.Language, project.Stars)\n\t\t} else {\n\t\t\tfmt.Printf(\"%d: %s (with %d ★ )\\n\", i, project.Name, project.Stars)\n\t\t}\n\t}\n}\n```\n\n### List trending developers of this month for Swift\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/andygrunwald/go-trending\"\n)\n\nfunc main() {\n\ttrend := trending.NewTrending()\n\n\tdevelopers, err := trend.GetDevelopers(trending.TimeMonth, \"swift\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfor index, developer := range developers {\n\t\ti := index + 1\n\t\tfmt.Printf(\"%d: %s (%s)\\n\", i, developer.DisplayName, developer.FullName)\n\t}\n}\n```\n\n### List available languages\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/andygrunwald/go-trending\"\n)\n\nfunc main() {\n\ttrend := trending.NewTrending()\n\n\t// Show languages\n\tlanguages, err := trend.GetLanguages()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfor index, language := range languages {\n\t\ti := index + 1\n\t\tfmt.Printf(\"%d: %s (%s)\\n\", i, language.Name, language.URLName)\n\t}\n}\n```\n\n## Inspired by\n\n* [rochefort/git-trend](https://github.com/rochefort/git-trend) (Ruby)\n* [sheharyarn/github-trending](https://github.com/sheharyarn/github-trending) (Ruby)\n\n## License\n\nThis project is released under the terms of the [MIT license](http://en.wikipedia.org/wiki/MIT_License).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandygrunwald%2FGo-trending","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandygrunwald%2FGo-trending","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandygrunwald%2FGo-trending/lists"}