{"id":16108490,"url":"https://github.com/chidiwilliams/go-web-server-tips","last_synced_at":"2025-03-18T09:30:33.342Z","repository":{"id":110490105,"uuid":"259649648","full_name":"chidiwilliams/go-web-server-tips","owner":"chidiwilliams","description":"Example project demonstrating tips for writing web servers in Go","archived":false,"fork":false,"pushed_at":"2020-05-01T17:35:36.000Z","size":11,"stargazers_count":36,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-28T08:29:50.546Z","etag":null,"topics":["buntdb","clean-architecture","clean-code","code-organization","go","mongo","mongodb","template"],"latest_commit_sha":null,"homepage":"https://dev.to/chidiwilliams/writing-cleaner-go-web-servers-3oe4","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/chidiwilliams.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-04-28T13:47:30.000Z","updated_at":"2025-02-07T12:38:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"bda8a624-b6dd-4cc2-8ae6-88bbc1a7a177","html_url":"https://github.com/chidiwilliams/go-web-server-tips","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/chidiwilliams%2Fgo-web-server-tips","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chidiwilliams%2Fgo-web-server-tips/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chidiwilliams%2Fgo-web-server-tips/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chidiwilliams%2Fgo-web-server-tips/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chidiwilliams","download_url":"https://codeload.github.com/chidiwilliams/go-web-server-tips/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243910666,"owners_count":20367546,"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":["buntdb","clean-architecture","clean-code","code-organization","go","mongo","mongodb","template"],"created_at":"2024-10-09T19:27:02.542Z","updated_at":"2025-03-18T09:30:33.337Z","avatar_url":"https://github.com/chidiwilliams.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-web-server-tips\n\nThis project demonstrates some code practices I use when writing web servers in Go.\n\nTo start, run:\n\n```shell script\ngo run main.go\n```\n\nBlog post: [dev.to/chidiwilliams/writing-cleaner-go-web-servers-3oe4](https://dev.to/chidiwilliams/writing-cleaner-go-web-servers-3oe4)\n\n## Tips\n\n- [x] Use clean architecture\n\n  - Good code organization/folder structure\n  - Decouple dependencies\n\n- [x] Extend HTTP handler\n\n  - Handle errors in one location\n\n- [x] Standardized response format\n\n- [x] Create custom errors for client errors\n\n  - Clean error handling\n\n- [ ] ozzo-validator with custom validator?\n\n  - Struct validation outside controller\n\n- [ ] Integration testing with testify?\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchidiwilliams%2Fgo-web-server-tips","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchidiwilliams%2Fgo-web-server-tips","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchidiwilliams%2Fgo-web-server-tips/lists"}