{"id":29048598,"url":"https://github.com/vikyd/importnotmatchmod-usage","last_synced_at":"2025-06-26T18:08:10.071Z","repository":{"id":107518240,"uuid":"276263413","full_name":"vikyd/importnotmatchmod-usage","owner":"vikyd","description":"Test if package path last element not match package name","archived":false,"fork":false,"pushed_at":"2020-07-01T03:06:42.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-04T17:02:40.735Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vikyd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-07-01T03:03:58.000Z","updated_at":"2024-06-19T10:15:52.820Z","dependencies_parsed_at":"2023-03-17T13:01:11.308Z","dependency_job_id":null,"html_url":"https://github.com/vikyd/importnotmatchmod-usage","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/vikyd/importnotmatchmod-usage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikyd%2Fimportnotmatchmod-usage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikyd%2Fimportnotmatchmod-usage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikyd%2Fimportnotmatchmod-usage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikyd%2Fimportnotmatchmod-usage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vikyd","download_url":"https://codeload.github.com/vikyd/importnotmatchmod-usage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikyd%2Fimportnotmatchmod-usage/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262119543,"owners_count":23261906,"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":"2025-06-26T18:07:51.529Z","updated_at":"2025-06-26T18:08:10.057Z","avatar_url":"https://github.com/vikyd.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pkgnotmatch-use\n\nTest if package path last element not match package name\n\n# Usage\n\nDownload or git clone this respo directly.\n\nRun:\n\n```sh\ngo run main.go\n```\n\n# Conclusion\n\nGolang can use package which its name is not match its path.\n\nThe customer should use the package name instead of last element of its path.\n\n- success: `abc.F01()`\n- failed: `importnotmatchmod.F01()`\n\nAbout import:\n\n- can be: `import \"github.com/vikyd/importnotmatchmod\"`\n  - used as: `abc.F01()`\n- can also be: `import abc \"github.com/vikyd/importnotmatchmod\"`\n  - used as: `abc.F01()`\n- can also be: `import othername \"github.com/vikyd/importnotmatchmod\"`\n  - used as: `othername.F01()`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikyd%2Fimportnotmatchmod-usage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvikyd%2Fimportnotmatchmod-usage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikyd%2Fimportnotmatchmod-usage/lists"}