{"id":43492598,"url":"https://github.com/iamgoangle/gogolf-template","last_synced_at":"2026-02-03T10:16:03.706Z","repository":{"id":40537413,"uuid":"499844104","full_name":"iamgoangle/gogolf-template","owner":"iamgoangle","description":"GO Boilerplate","archived":false,"fork":false,"pushed_at":"2022-09-06T06:53:22.000Z","size":226,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-12-16T14:44:01.596Z","etag":null,"topics":["air","docker","go","golang","reloader"],"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/iamgoangle.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":".gitlab/CODEOWNERS","security":null,"support":null}},"created_at":"2022-06-04T14:07:15.000Z","updated_at":"2023-12-14T19:37:06.000Z","dependencies_parsed_at":"2022-06-29T23:31:16.590Z","dependency_job_id":null,"html_url":"https://github.com/iamgoangle/gogolf-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/iamgoangle/gogolf-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamgoangle%2Fgogolf-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamgoangle%2Fgogolf-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamgoangle%2Fgogolf-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamgoangle%2Fgogolf-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamgoangle","download_url":"https://codeload.github.com/iamgoangle/gogolf-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamgoangle%2Fgogolf-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29041056,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T10:09:22.136Z","status":"ssl_error","status_checked_at":"2026-02-03T10:09:16.814Z","response_time":96,"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":["air","docker","go","golang","reloader"],"created_at":"2026-02-03T10:16:00.876Z","updated_at":"2026-02-03T10:16:03.701Z","avatar_url":"https://github.com/iamgoangle.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GOGOLF Boilerplate Template\nMy go backend template. This is a go boiplerplate to quickly started the new project with golang and standard dependencies for local development pipeline.\n ![Tux, the Linux mascot](/docs/GOGolf.jpg)\n \n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n**Table of Contents**\n- [Getting Started](#getting-started)\n- [Prerequsition](#prerequsition)\n- [👩‍⚕️ Pre-Commit](#%E2%80%8D-pre-commit)\n- [Commit Lint](#commit-lint)\n- [Miscellaneous](#miscellaneous)\n- [Set $GOPATH](#set-gopath)\n- [Hexagonal Architecture](#hexagonal-architecture)\n- [Architecture Components](#architecture-components)\n- [Core](#core)\n- [Domain](#domain)\n- [Service](#service)\n- [Repository](#repository)\n- [Dependency Injection](#dependency-injection)\n  - [Port and Adaptor Design Patterns](#port-and-adaptor-design-patterns)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n**Design Structure**\n[สรุปเรื่อง GopherCon 2018: Kat Zien — How Do You Structure Your Go Apps](https://goangle.medium.com/%E0%B8%AA%E0%B8%A3%E0%B8%B8%E0%B8%9B%E0%B9%80%E0%B8%A3%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%87-gophercon-2018-kat-zien-how-do-you-structure-your-go-apps-a96faca9e8f1)\n\n**Features**\n\n1. Hot-Reloader with Air.\n2. Pre-commit.\n\n\n# Getting Started\n## Prerequsition\nPlease run `$ make init` to initialize the basic needed command and dependencies for your local development. We built this command to install the stuff to make the industry stnadard good grade to local development.\n\nHere is a standard development pipeline installed.\n\n1. go\n2. node\n3. pre-commit\n\n## 👩‍⚕️ Pre-Commit\nYou can reached pre-commit hooks and rules under `.pre-commit-config.yaml` configuration file.\n\n## Commit Lint\nThe commit lint is make more sense of good engineering should be. Essepcially, the `commitlint`, in this template I've follow the convention here [https://www.conventionalcommits.org/en/v1.0.0/](https://www.conventionalcommits.org/en/v1.0.0/)\n\n\n## Miscellaneous\n### Set $GOPATH\nThe $GOPATH environment variable lists places for Go to look for Go Workspaces.\n\n[https://go.dev/doc/gopath_code#GOPATH](https://go.dev/doc/gopath_code#GOPATH)\n\nAdd this to your profile. If you use *zsh* please also update `.zshrc`\n\n```sh\nexport GOPATH=\"$HOME/go\"\nPATH=\"$GOPATH/bin:$PATH\"\n```\n\nthen `source .zshrc` for reload the the environment. You can check you GOPATH by `go env GOPATH`\n\n# Hexagonal Architecture\nThis golang project adopt the hexagonal architecture to grouping the code by domain and context of business problems.\n\n## Architecture Components\n### Core\n\nEverything surrounded the `core` this layer contains the concrete core business logics.\n\nThe core could be viewed as a “box” (represented as a hexagon) capable of resolve all the business logic independently.\n\n### Domain\n\nThe domain entity it contains the go struct definition of each entity that is part of the domain problem and can be used across the application.\n\n\u003e**Seperate of concern**\nFor example, this layer should not be known how the data keeps its, or how the caching store in the redis.\n\n**Port** is the interfaces are the ports that external actors will plug their adapters into to drive the application.\n\n**Adapter** is the implementation of the ports\n\n### Service\nService is through which the client will interact with actual business logic/domain objects. The client can be rest handlers, test agents, etc.\n\n### Repository\nThe repository interface allows us to connect to multiple data sources.\n\n### Dependency Injection\n#### Port and Adaptor Design Patterns\n\nOutside concerns, such as repositories and user interfaces, use the adapters to plug into the business domain services.\n\n**References**\n- https://www.linkedin.com/pulse/part-2-go-project-layout-hexagonal-architecture-kaushal-prajapati/\n- https://www.linkedin.com/pulse/hexagonal-software-architecture-implementation-using-golang-ramaboli/\n- https://medium.com/@matiasvarela/hexagonal-architecture-in-go-cfd4e436faa3\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamgoangle%2Fgogolf-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamgoangle%2Fgogolf-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamgoangle%2Fgogolf-template/lists"}