{"id":20228324,"url":"https://github.com/matryer/drop","last_synced_at":"2025-04-10T17:33:30.716Z","repository":{"id":57495722,"uuid":"59883606","full_name":"matryer/drop","owner":"matryer","description":"Dependency-less dependencies for Go.","archived":false,"fork":false,"pushed_at":"2016-11-26T19:50:08.000Z","size":27,"stargazers_count":122,"open_issues_count":2,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T15:11:15.278Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matryer.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":"2016-05-28T07:53:27.000Z","updated_at":"2024-08-19T09:48:45.000Z","dependencies_parsed_at":"2022-08-28T17:41:20.281Z","dependency_job_id":null,"html_url":"https://github.com/matryer/drop","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/matryer%2Fdrop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matryer%2Fdrop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matryer%2Fdrop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matryer%2Fdrop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matryer","download_url":"https://codeload.github.com/matryer/drop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248261995,"owners_count":21074229,"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-11-14T07:29:38.579Z","updated_at":"2025-04-10T17:33:30.683Z","avatar_url":"https://github.com/matryer.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Drop\nDependency-less dependencies for Go.\n\nFeatures:\n\n* Drop copies dependency source files into your project\n* Rewrites `package` declaration to match your code\n* Familiar [usage](#usage) - uses `go get` under the hood\n* Configurable by [package authors](#package-authors)\n\nGet started:\n\n* [How it works](#how-it-works)\n* [Install](#install)\n* [Usage](#usage)\n* [Package authors](#package-authors)\n\n## How it works\n\nFrom inside your project (where files will be copied):\n\n```\ndrop {import-path}\n```\n\nFor example, to add the retry functionality from [github.com/matryer/try](https://github.com/matryer/try):\n\n```\ndrop github.com/matryer/try\n```\n\nThe `*.go` files from the package will be copied into your project.\n\n## Install\n\nInstall with:\n\n```\ngo get github.com/matryer/drop\n```\n\n## Usage\n\n```\n  drop [flags] import [path]\n\n  flags       - see below\n  import      - import path to go get\n  path        - directory within repo to copy from\n\nflags:\n  -f\toverwrite files\n  -help\n    \tshow help\n  -outformat string\n    \tfilename format (default \"%s\")\n  -package string\n    \tpackage name (default auto discover)\n  -v\tverbose logging\n  -version\n    \tprint version\n```\n\n## Package authors\n\nBy default, all `*.go` files are copied (including test files). To explicitly\nspecify what is copied, you can add a `.drop` file to the directory, where\neach line is a file, or [filepath.Match pattern](https://golang.org/pkg/path/filepath/#Match):\n\n### Example `.drop` file\n\n```\n# .drop file for this project\n\nsomething.go\nsomething_test.go\nsomething_tips.md\n*.sh\n```\n\n* Comments (lines beginning with `#`) and empty lines are ignored\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatryer%2Fdrop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatryer%2Fdrop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatryer%2Fdrop/lists"}