{"id":36802547,"url":"https://github.com/pkritiotis/go-climb-clean-architecture-example","last_synced_at":"2026-01-12T13:35:26.281Z","repository":{"id":45606700,"uuid":"392084940","full_name":"pkritiotis/go-climb-clean-architecture-example","owner":"pkritiotis","description":"A small web application written in go that demonstrates clean architecture.","archived":false,"fork":false,"pushed_at":"2024-12-30T14:37:29.000Z","size":677,"stargazers_count":76,"open_issues_count":0,"forks_count":12,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-22T16:32:46.340Z","etag":null,"topics":["clean-architecture","example","example-project","go","golang"],"latest_commit_sha":null,"homepage":"https://pkritiotis.io/clean-architecture-in-golang/","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/pkritiotis.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,"zenodo":null}},"created_at":"2021-08-02T20:26:29.000Z","updated_at":"2025-07-28T19:16:24.000Z","dependencies_parsed_at":"2024-06-19T01:45:54.306Z","dependency_job_id":"a4162d99-781c-472e-a65b-487ffebd9d8b","html_url":"https://github.com/pkritiotis/go-climb-clean-architecture-example","commit_stats":null,"previous_names":["pkritiotis/go-clean","pkritiotis/go-climb"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pkritiotis/go-climb-clean-architecture-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkritiotis%2Fgo-climb-clean-architecture-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkritiotis%2Fgo-climb-clean-architecture-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkritiotis%2Fgo-climb-clean-architecture-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkritiotis%2Fgo-climb-clean-architecture-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pkritiotis","download_url":"https://codeload.github.com/pkritiotis/go-climb-clean-architecture-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkritiotis%2Fgo-climb-clean-architecture-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28339255,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"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","example","example-project","go","golang"],"created_at":"2026-01-12T13:35:25.574Z","updated_at":"2026-01-12T13:35:26.248Z","avatar_url":"https://github.com/pkritiotis.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Climb - Clean Architecture Example in Go\n[![Go Build \u0026 Test](https://github.com/pkritiotis/go-climb/actions/workflows/build-test.yml/badge.svg)](https://github.com/pkritiotis/go-climb/actions/workflows/build-test.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/pkritiotis/go-climb)](https://goreportcard.com/report/github.com/pkritiotis/go-climb)\n[![golangci-lint](https://github.com/pkritiotis/go-climb/actions/workflows/lint.yml/badge.svg)](https://github.com/pkritiotis/go-climb/actions/workflows/lint.yml)\n\nThis is a sample project demonstrating an example of clean architecture in go. Detailed description in my blog post: https://pkritiotis.io/clean-architecture-in-golang/\n\n\n# Code Design\n![Code Design](./docs/graphics/clean-architecture-go-climb.png)\n\n# Application Overview\n\n### Use Cases\nAs a **web client**, I want to be able to\n* Get all available crags.\n* Get a crag by ID.\n* Add a crag by providing a name, country, and description.\n* Update a crag by providing a name, country, and description.\n* Remove a crag by ID.\n\nAs an **application administrator**\n* When a new crag is added, I want to receive a notification at a pre-agreed channel.\n\n### Technical requirements\n* Operations should be exposed via an HTTP restful interface.\n* For *simplicity* purposes,\n    * The crags should be stored in memory; no need for persistence storage.\n    * Notifications should be sent in a console application.\n\n**Project Structure**\n\nGo Climb follows the group-by-layer structure:\n\n```bash\n├── go-climb\n│   ├── cmd/\n│   ├── docs/\n│   ├── internal\n│   ├── app\n│   │   ├── crag\n│   │   │   ├── commands\n│   │   │   └── queries\n│   │   ├── notification\n│   │   │   ├── mock_notification.go\n│   │   │   └── notification.go\n│   │   ├── services.go\n│   │   └── services_test.go\n│   ├── domain\n│   │   └── crag\n│   │       ├── crag.go\n│   │       ├── mock_repository.go\n│   │       └── repository.go\n│   ├── infra\n│   │   ├── http\n│   │   │   ├── crag\n│   │   │   └── server.go\n│   │   ├── notification\n│   │   │   └── console\n│   │   ├── services.go\n│   │   └── storage\n│   │       ├── memory\n│   │       └── mysql\n|   │   └── pkg\n|   │       ├── time/\n|   │       └── uuid/\n│   └── vendor/\n```\n- `cmd` contains the `main.go` file, the entry point of the application\n- `docs` contains documentation about the application\n- `internal` contains the main implementation of our application. It consists of the three layers of clean architecture + shared utility code under `pkg/`\n    - infra\n    - app\n    - domain\n    - pkg\n\n  Each of these directories contains its corresponding components, following the group-by-feature approach.\n- `vendor` contains the dependencies of our project\n\nGreat, we know how the high-level project structure of Go Climb.\n\n\n# Developer's Handbook\n```makefile\nmake run  ## Run the application\nmake lint  ## Perform linting\nmake test  ## Run unit tests\nmake build  ## Build the app executable for Linux\nmake fmt  ## Format the source code\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkritiotis%2Fgo-climb-clean-architecture-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpkritiotis%2Fgo-climb-clean-architecture-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkritiotis%2Fgo-climb-clean-architecture-example/lists"}