{"id":20198372,"url":"https://github.com/uudashr/gopkgs","last_synced_at":"2025-04-04T10:06:11.794Z","repository":{"id":41583731,"uuid":"103640668","full_name":"uudashr/gopkgs","owner":"uudashr","description":"gopkgs - Tool to get list available Go packages","archived":false,"fork":false,"pushed_at":"2022-03-29T03:43:30.000Z","size":111,"stargazers_count":122,"open_issues_count":1,"forks_count":34,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-28T09:05:09.178Z","etag":null,"topics":["go","golang","tool"],"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/uudashr.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":"2017-09-15T09:39:04.000Z","updated_at":"2025-03-22T13:28:31.000Z","dependencies_parsed_at":"2022-09-16T16:52:37.293Z","dependency_job_id":null,"html_url":"https://github.com/uudashr/gopkgs","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uudashr%2Fgopkgs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uudashr%2Fgopkgs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uudashr%2Fgopkgs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uudashr%2Fgopkgs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uudashr","download_url":"https://codeload.github.com/uudashr/gopkgs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247157043,"owners_count":20893202,"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":["go","golang","tool"],"created_at":"2024-11-14T04:30:49.411Z","updated_at":"2025-04-04T10:06:11.767Z","avatar_url":"https://github.com/uudashr.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/uudashr/gopkgs.svg?branch=master)](https://travis-ci.org/uudashr/gopkgs)[![GoDoc](https://godoc.org/github.com/uudashr/gopkgs?status.svg)](https://godoc.org/github.com/uudashr/gopkgs)\n\n# gopkgs\n\n`gopkgs` is a tool that provides list of available Go packages that can be imported.\n\nThis is an alternative to `go list all`, just faster.\n\n## Installation\n\n`$ go get -u github.com/uudashr/gopkgs/cmd/gopkgs`\n\nor, using **Go 1.12+**:\n\n`$ go install github.com/uudashr/gopkgs/v2/cmd/gopkgs@latest`\n\n## Usage\n\n### Tool\n\n```plaintext\n$ gopkgs -help\nUsage of gopkgs:\n  -format string\n    \tcustom output format (default \"{{.ImportPath}}\")\n  -help\n    \tshow this message\n  -no-vendor\n    \texclude vendor dependencies except under workDir (if specified)\n  -workDir string\n    \timportable packages only for workDir\n\n\nUse -format to custom the output using template syntax. The struct being passed to template is:\n    type Pkg struct {\n        Dir        string // directory containing package sources\n        ImportPath string // import path of package in dir\n        Name       string // package name\n        Standard   bool   // is this package part of the standard Go library?\n    }\n\nUse -workDir={path} to speed up the package search. This will ignore any vendor package outside the package root.\n```\n\n### Library\n\nThis project adheres to the Go modules [release strategy](https://github.com/golang/go/wiki/Modules#releasing-modules-v2-or-higher) by using the `Major subdirectory` approach.\n\nStarting from version `v2.0.3`, you're able to use either `github.com/uudashr/gopkgs` or `github.com/uudashr/gopkgs/v2` versions independently.\n\nThe tool `cmd/gopkgs` uses `v2` package internally.\n\n### Example\n\nGet package name along with the import path.\n\n```plaintext\n$ gopkgs -format \"{{.Name}};{{.ImportPath}}\"\ntesting;github.com/mattes/migrate/source/testing\nhttp;github.com/stretchr/testify/http\nql;github.com/mattes/migrate/database/ql\npkgtree;github.com/golang/dep/internal/gps/pkgtree\nsqlite3;github.com/mattes/migrate/database/sqlite3\ngps;github.com/golang/dep/internal/gps\nspanner;github.com/mattes/migrate/database/spanner\ndep;github.com/golang/dep\nshortener;github.com/uudashr/shortener\nbindata;github.com/mattes/migrate/source/go-bindata\npostgres;github.com/mattes/migrate/database/postgres\ntest;github.com/vektra/mockery/mockery/fixtures\nawss3;github.com/mattes/migrate/source/aws-s3\n```\n\n### Tips\n\nUse `-workDir={path}` flag, it will speed up the package search by ignoring the external vendor.\n\n## Related Project\n\nThis is based on \u003chttps://github.com/haya14busa/gopkgs\u003e but takes slightly different path by simplifying its implementation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuudashr%2Fgopkgs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuudashr%2Fgopkgs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuudashr%2Fgopkgs/lists"}