{"id":19283055,"url":"https://github.com/vikashchauhan51/go-sample-api","last_synced_at":"2026-02-05T20:02:22.518Z","repository":{"id":225596030,"uuid":"766366495","full_name":"VikashChauhan51/go-sample-api","owner":"VikashChauhan51","description":"Web api in golang with Gin farmwork with Clean Architecture principles.","archived":false,"fork":false,"pushed_at":"2024-07-28T10:29:21.000Z","size":10346,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-19T04:07:04.621Z","etag":null,"topics":["clean-architecture","gin","gin-framework","gin-swagger","go","golang"],"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/VikashChauhan51.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":"2024-03-03T04:01:02.000Z","updated_at":"2024-08-13T09:32:29.000Z","dependencies_parsed_at":"2024-11-09T21:42:03.191Z","dependency_job_id":null,"html_url":"https://github.com/VikashChauhan51/go-sample-api","commit_stats":null,"previous_names":["vikashchauhan51/go-sample-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/VikashChauhan51/go-sample-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VikashChauhan51%2Fgo-sample-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VikashChauhan51%2Fgo-sample-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VikashChauhan51%2Fgo-sample-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VikashChauhan51%2Fgo-sample-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VikashChauhan51","download_url":"https://codeload.github.com/VikashChauhan51/go-sample-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VikashChauhan51%2Fgo-sample-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29132520,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T19:36:52.185Z","status":"ssl_error","status_checked_at":"2026-02-05T19:35:40.941Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["clean-architecture","gin","gin-framework","gin-swagger","go","golang"],"created_at":"2024-11-09T21:29:33.108Z","updated_at":"2026-02-05T20:02:22.487Z","avatar_url":"https://github.com/VikashChauhan51.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-sample-api\nWeb api in golang with Gin farmwork:\n```\nGO-SAMPLE-API\n├───.github                # GitHub-specific files\n│   └───workflows          # CI/CD workflows\n├───.vscode                # VSCode-specific files and configurations\n├───cmd                    # Application entry points\n│   └───api                # Main API entry point\n│       └───routes         # Route configurations for the HTTP server\n├───configs                # Configuration files\n├───docs                   # Documentation files\n├───internal               # Private application and library code\n│   ├───controllers        # HTTP handlers\n│   ├───core               # Core business logic\n│   │   ├───entities       # Core business entities\n│   │   ├───interfaces     # Interfaces for dependencies\n│   │       ├───repositories  # Repository interfaces\n│   │       └───services      # Service interfaces\n│   │  \n│   ├───dto                # Data transfer objects (request/response models)\n│   └───infra              # Infrastructure implementations\n│       ├───databases      # Database access implementations\n│       ├───repositories   # Implementations of repository interfaces\n│       └───services       # Implementations of service interfaces\n├───pkg                    # Public library code\n│   └───middlewares        # Custom middleware implementations\n├───test                   # Test-related files\n└───vendor                 # Third-party dependencies (managed by `go mod`)\n```\n\n\n## Update swagger document\n\n```cmd\nswag init -g cmd/api/main.go\n```\n\n## Important command\n\n```\ngo mod int \u003cpackage_name\u003e\ngo get \u003cpackage_url\u003e\ngo mod tidy\ngo mod vendor\nswag init -g cmd/api/main.go\n```\n## Debug it locally\n\nPlease install [delve](https://github.com/go-delve/delve/tree/master/Documentation/installation)\n\nClick on debugger to run it.\n\n## run it\n```cmd\ngo run cmd/api/main.go\n```\nhttp://localhost:8080/swagger/index.html\n\n![image](https://github.com/user-attachments/assets/87469707-8407-4076-9893-f429f04c4e7b)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikashchauhan51%2Fgo-sample-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvikashchauhan51%2Fgo-sample-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikashchauhan51%2Fgo-sample-api/lists"}