{"repo":"dariubs/micro","free":true,"listed":false,"github":"https://github.com/dariubs/micro","clone":"git clone https://github.com/dariubs/micro.git","description":"My golang apps base template","language":null,"stars":21,"topics":["golang","template"],"license":null,"category":"saas-starters-boilerplates","readme_excerpt":"Micro Go Template A minimal, opinionated scaffold for Go microservices and web apps. Use this as a starting point for new projects. It provides a clean directory layout, placeholders for common layers, and folders for configs, templates, static files, and logs. Module name (from go.mod ): github.com/dariubs/micro — update this to your own module path when you start a new project. Directory layout Each empty folder includes a .keep file so the directory structure is tracked in version control. Quick start (use this template) 1) Create a new project from this template (copy or fork), then update the module path: 2) Add an entrypoint in app/exe/main.go : 3) Run it: 4) Build it: Recommended conventions - Packages: Keep package main only in app/exe . All other code should be library packages. - Handlers in app/handler should be thin; push business logic into app/model or dedicated services. - Types in app/types are shared DTOs; avoid circular dependencies with model and handler . - Utilities in app/util should be generic and reusable. - Configuration: Load from config/ and/or environment variables. Consider providing a config.example.yaml . - Logging: Write to stdout in development; optional file sink to log/ in production (rotate logs externally). Updating Go version The template uses go 1.15 in go.mod . Update to a modern version for new projects: Ensure your local toolchain matches: Next steps - Choose an HTTP router/framework (e.g., standard library, Gin, Echo, Fiber) and add ","default_branch":null,"files":null,"tree":[],"storefront":"/r/dariubs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dariubs/micro/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}