Fully fletched golang backend server template
Find a file
Zervó e042ee9e7f WIP
Work-in-progress commit. Maybe half-way or 2/3:s through having a
"finished" template?
2026-04-16 13:20:41 +02:00
internal WIP 2026-04-16 13:20:41 +02:00
.gitignore WIP 2026-04-16 13:20:41 +02:00
go.mod WIP 2026-04-16 13:20:41 +02:00
go.sum WIP 2026-04-16 13:20:41 +02:00
LICENSE Update LICENSE 2026-04-14 21:40:48 +02:00
README.md Update README.md 2026-04-14 23:47:15 +02:00

Advanced Backend Template for Go

Warning

This template is still a work in progress.

Fully fletched backend server written in Go, built on the following frameworks and libraries:

  • Iris - A flexible and high performance web framework.
  • GORM - A full-featured ORM library.
  • Viper - An awesome configuration library.
  • Zerolog - A fast and simple logging library.

It offers a (in my opinion) good project structure, and has the following features:

  • Support for multiple database types.
  • Well-integrated logging utilities.
  • Full account creation and authentication.
  • Granular role/permission system for advanced authorization.
  • Clear data structures with domain-specific Models, DTOs and DAOs.
  • Email verification, password resets, 2FA and more.
  • Builtin mailer for system messages.

Despite these features, it doesn't do much in practice on its own. You have to build your own functionality into it. But it does handle one of the most time consuming tasks for you, and that is bootstrapping the project and getting all core functionality in there.

Please note that I wrote this template primarily for my own personal use, and share it in case others find it useful. Some things might be a bit opinionated.

Questions or concerns? You can reach me at contact@zervo.dev.