go-vertical-slice-template

A Golang boilerplate template, based on Vertical Slice Architecture and CQRS pattern with using Echo, Gorm, Zap, Viper, Go-MediatR for CQRS and Dig for Dependency Injection.

gogolangtemplateboilerplateexampledependency-injectionboilerplate-templateclean-architecturedependency-inversiondependency-injectionsvertical-slice-architecture
FreeRepo

Preview

go-vertical-slice-template preview

Overview

Go Vertical Slice Template is a Golang boilerplate for building backend applications using Vertical Slice Architecture and CQRS pattern. It includes Echo for web framework, Gorm for database access, Zap for logging, Viper for configuration and dependency injection via uber-go/dig, designed to help developers start projects with organized, maintainable code structure that minimizes coupling and maximizes feature independence.

Features

vertical-slice-architecturecqrs-patternmediator-patterndependency-injectionrest-apiswagger-documentationinput-validationconfiguration-managementstructured-loggingerror-handling

Feature Flags

blogecommerceteamsOrgsapiDocsmapsformsValidationmultitenancyloggingerrorTracking

Recommended Use Cases

backend-api-developmentmicroservicesrest-api-projectsgolang-learning

Frontend

None

Backend

goechogormzapvipergo-mediatrdig

Auth Providers

None

Deployment Targets

None

Payment Providers

None

Quick Facts

โญ Stars
103
๐Ÿด Forks
12
๐Ÿ”„ Active
Unknown
๐Ÿ•’ Last Commit
2025-04-06T21:05:17.000Z

Stack

Framework
echo
Language
go
Database
sqlite
ORM
gorm
Testing
testify
Logging
zap

Data Layer

Databases
sqlite
ORM
gorm

UI Stack

Developer Experience

Docker
No
Tests
Yes
Quickstart
Yes
env.example
Yes

Pricing

Classification
free
Selected
โ€”
Notes
Open source boilerplate template
Get Started with this Boilerplate