{"id":37150801,"url":"https://github.com/andrewstuart/impl","last_synced_at":"2026-01-14T17:48:57.766Z","repository":{"id":57606300,"uuid":"78675809","full_name":"andrewstuart/impl","owner":"andrewstuart","description":"impl generates method stubs for implementing an interface.","archived":false,"fork":true,"pushed_at":"2017-11-04T19:33:21.000Z","size":62,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T14:58:05.533Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"josharian/impl","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrewstuart.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-11T20:14:56.000Z","updated_at":"2017-01-11T20:14:59.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/andrewstuart/impl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andrewstuart/impl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewstuart%2Fimpl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewstuart%2Fimpl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewstuart%2Fimpl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewstuart%2Fimpl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrewstuart","download_url":"https://codeload.github.com/andrewstuart/impl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewstuart%2Fimpl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28428944,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T16:38:47.836Z","status":"ssl_error","status_checked_at":"2026-01-14T16:34:59.695Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-14T17:48:57.067Z","updated_at":"2026-01-14T17:48:57.758Z","avatar_url":"https://github.com/andrewstuart.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"`impl` generates method stubs for implementing an interface.\n\n```bash\ngo get -u github.com/josharian/impl\n```\n\nSample usage:\n\n```bash\n$ impl 'f *File' io.ReadWriteCloser\nfunc (f *File) Read(p []byte) (n int, err error) {\n\tpanic(\"not implemented\")\n}\n\nfunc (f *File) Write(p []byte) (n int, err error) {\n\tpanic(\"not implemented\")\n}\n\nfunc (f *File) Close() error {\n\tpanic(\"not implemented\")\n}\n\n# You can also provide a full name by specifying the package path.\n# This helps in cases where the interface can't be guessed\n# just from the package name and interface name.\n$ impl 's *Source' golang.org/x/oauth2.TokenSource\nfunc (s *Source) Token() (*oauth2.Token, error) {\n    panic(\"not implemented\")\n}\n\n# You can request that the declaring file be updated in-place by passing -u\n$ impl -u 'f *File' io.ReadWriteCloser\n\n# You can also specify a position at which you'd like the generated code to be\n# inserted, helpful for editor/ide integration.\n$ impl -p main.go:12 'f *File' io.ReadWriteCloser\n\n# Finally, you can override the default stdout printing and send your output to \n# a specific file with the -o option.\n$ impl -p main.go:12 -o test/main2.go 'f *File' io.ReadWriteCloser\n```\n\nYou can use `impl` from Vim with [vim-go-impl](https://github.com/rhysd/vim-go-impl)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewstuart%2Fimpl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewstuart%2Fimpl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewstuart%2Fimpl/lists"}