{"id":29760826,"url":"https://github.com/jcchavezs/porto","last_synced_at":"2025-07-26T20:38:15.640Z","repository":{"id":46759689,"uuid":"308661538","full_name":"jcchavezs/porto","owner":"jcchavezs","description":"Tool for adding vanity import to Go code","archived":false,"fork":false,"pushed_at":"2024-10-02T18:41:03.000Z","size":134,"stargazers_count":40,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-19T09:31:17.794Z","etag":null,"topics":["go","go-linter","go-tools"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jcchavezs.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":"2020-10-30T14:55:03.000Z","updated_at":"2025-06-19T07:59:12.000Z","dependencies_parsed_at":"2022-09-22T19:40:37.819Z","dependency_job_id":"f1fddec3-e645-41d2-b0b0-23efc6487cfc","html_url":"https://github.com/jcchavezs/porto","commit_stats":{"total_commits":45,"total_committers":2,"mean_commits":22.5,"dds":"0.28888888888888886","last_synced_commit":"23b2a3fb11b71e52cb1309fa2cce5d52028c7f9a"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/jcchavezs/porto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcchavezs%2Fporto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcchavezs%2Fporto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcchavezs%2Fporto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcchavezs%2Fporto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcchavezs","download_url":"https://codeload.github.com/jcchavezs/porto/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcchavezs%2Fporto/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267229117,"owners_count":24056380,"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","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["go","go-linter","go-tools"],"created_at":"2025-07-26T20:38:11.772Z","updated_at":"2025-07-26T20:38:15.635Z","avatar_url":"https://github.com/jcchavezs.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Porto\n\nTool for adding [vanity imports](https://sagikazarmark.hu/blog/vanity-import-paths-in-go/) URI to Go files.\n\ne.g. `package zipkin` -\u003e `package zipkin // import \"github.com/openzipkin/zipkin-go\"`\n\n## Install\n\n```bash\ngo install github.com/jcchavezs/porto/cmd/porto\n```\n\n## Getting started\n\nRun the tool and display the changes without applying them\n\n```bash\nporto path/to/library\n```\n\nIf you want the changes to be applied to the files directly, run:\n\n```bash\nporto -w path/to/library\n```\n\nIf you just want to list the files that porto would change vanity import, run:\n\n```bash\nporto -l path/to/library\n```\n\n## Inclusion/exclusion rules\n\n`porto` skips autogenerated, internal, third party and vendored files by default. You can customize what files get included using some flags:\n\n- If you want to ignore files (e.g. proto generated files), pass the `--skip-files` flag:\n\n```bash\nporto --skip-files \".*\\\\.pb\\\\.go$\" path/to/library\n```\n\n- If you want to ignore directories (e.g. tooling directories), pass the `--skip-dirs` flag:\n\n```bash\nporto --skip-dirs \"^tools$\" path/to/library\n```\n\n- If you want to include `internal` folders and directories skipped by default:\n\n```bash\nporto --include-internal --skip-dirs-use-default=false path/to/library\n```\n\n- If you want to restrict to certain files e.g. `doc.go` you\ncan use:\n\n```bash\nporto --restrict-to-files \"doc.go$\" path/to/library\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcchavezs%2Fporto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcchavezs%2Fporto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcchavezs%2Fporto/lists"}