{"id":22202749,"url":"https://github.com/namchee/go-clean-interface","last_synced_at":"2025-03-25T01:47:09.258Z","repository":{"id":114520554,"uuid":"604674075","full_name":"Namchee/go-clean-interface","owner":"Namchee","description":"No `I` prefix or `Itf` suffix in your Golang interfaces please!","archived":false,"fork":false,"pushed_at":"2023-02-22T12:55:08.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-30T03:28:03.195Z","etag":null,"topics":["go","golang","golangci-lint","linter"],"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/Namchee.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":"2023-02-21T14:59:00.000Z","updated_at":"2023-03-04T04:08:13.000Z","dependencies_parsed_at":"2023-06-08T14:30:28.009Z","dependency_job_id":null,"html_url":"https://github.com/Namchee/go-clean-interface","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/Namchee%2Fgo-clean-interface","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Namchee%2Fgo-clean-interface/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Namchee%2Fgo-clean-interface/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Namchee%2Fgo-clean-interface/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Namchee","download_url":"https://codeload.github.com/Namchee/go-clean-interface/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245383120,"owners_count":20606265,"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","golangci-lint","linter"],"created_at":"2024-12-02T16:37:24.491Z","updated_at":"2025-03-25T01:47:09.222Z","avatar_url":"https://github.com/Namchee.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-clean-interface\n\nChecks interface declarations for unnecessary `I` prefixes or `Itf` suffixes.\n\n## Why?\n\n[Main Reasoning](https://stackoverflow.com/a/5817904)\n\nPrefixing interfaces with `I` or suffixing them with `Itf` is leftover convention from Java and C#. When we are writing code with clean architecture as a guideline, whatever we pass as a dependency should be expected as an interface.\n\nInterfaces shouldn't be treated as a special language feature that requires special naming conventions.\n\n## Installation\n\n```shell\ngo install github.com/Namchee/go-clean-interface@latest\n```\n\n## Usage\n\n```shell\ngo-clean-interface [-flag] [package]\n```\n\n## Options\n\nAll options are provided through CLI flags.\n\nName | Type | Default | Description\n---- | ---- | ------- | -----------\n`no-prefix` | `bool` | `true` | Disallow interface declarations to be prefixed with `I`\n`no-suffix` | `bool` | `true` | Disallow interface declarations to be suffixed with `Itf`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnamchee%2Fgo-clean-interface","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnamchee%2Fgo-clean-interface","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnamchee%2Fgo-clean-interface/lists"}