{"id":23692592,"url":"https://github.com/arthurfp/go_builder_pattern","last_synced_at":"2026-01-17T09:30:22.148Z","repository":{"id":234806889,"uuid":"789529104","full_name":"arthurfp/Go_Builder_Pattern","owner":"arthurfp","description":"An illustrative Go project demonstrating the Builder pattern with a practical example of building customizable pizzas. Features robust error handling and unit testing to showcase best practices in software design.","archived":false,"fork":false,"pushed_at":"2024-05-05T22:55:04.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-30T03:29:24.855Z","etag":null,"topics":["builder-pattern","code-pattern","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arthurfp.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":"2024-04-20T20:03:19.000Z","updated_at":"2024-05-05T23:09:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"5d94a594-6f81-4f26-9bb7-939cae9b2277","html_url":"https://github.com/arthurfp/Go_Builder_Pattern","commit_stats":null,"previous_names":["arthurfp/go_builder_pattern"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthurfp%2FGo_Builder_Pattern","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthurfp%2FGo_Builder_Pattern/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthurfp%2FGo_Builder_Pattern/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthurfp%2FGo_Builder_Pattern/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arthurfp","download_url":"https://codeload.github.com/arthurfp/Go_Builder_Pattern/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239758828,"owners_count":19692034,"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":["builder-pattern","code-pattern","go","golang"],"created_at":"2024-12-30T03:29:26.836Z","updated_at":"2025-02-20T00:43:48.852Z","avatar_url":"https://github.com/arthurfp.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Builder Pattern Demonstration in Go\n\n## Overview\nThis repository demonstrates the use of the Builder design pattern implemented in Go. The project illustrates how to manage complex object construction with multiple optional configurations and showcases robust error handling within the builder processes. The primary focus is on building customizable pizzas, offering both standard and gourmet options.\n\n## Pattern Description\nThe Builder Pattern separates the construction of a complex object from its representation, allowing the same construction process to create different representations. This is particularly useful when an object requires multiple parts to be constructed across several steps or if its construction requires an extensive list of parameters. In this project, `PizzaBuilder` and `GourmetPizzaBuilder` are used to construct `Pizza` objects with various properties such as crust type, size, and toppings.\n\n## Project Structure\n- **cmd/**: Contains the application entry point (`main.go`), demonstrating the use of the Builder pattern to construct pizzas.\n- **pkg/**\n    - **builder/**: Includes the interfaces and concrete implementations for the pizza builders.\n    - **product/**: Contains the `Pizza` class definition.\n    - **config/**: (Optional) Contains predefined configurations or recipes for building standard or gourmet pizzas.\n\n## Getting Started\n\n### Prerequisites\nEnsure you have Go installed on your system. You can download it from [Go's official site](https://golang.org/dl/).\n\n### Installation\nClone this repository to your local machine:\n```bash\ngit clone https://github.com/arthurfp/Go_Builder_Pattern.git\ncd Go_Builder_Pattern\n```\n\n### Running the Application\nTo run the application, execute:\n```bash\ngo run cmd/main.go\n```\n\n### Running the Tests\nTo execute the tests and verify the functionality:\n```bash\ngo test ./...\n```\n\n### Contributing\nContributions are welcome! Please feel free to submit pull requests or open issues to discuss proposed changes or enhancements.\n\n### Author\nArthur Ferreira - github.com/arthurfp","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farthurfp%2Fgo_builder_pattern","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farthurfp%2Fgo_builder_pattern","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farthurfp%2Fgo_builder_pattern/lists"}