Skip to content

sulo1337/golang-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang Simple HTTP Service Starter

This project is a starter I use for new Golang projects. This project roughly demonstrates implementation of clean architecture (WIP).

Architecture

The code is structured into the following layers:

  • api - layer for API routers, and handlers along with middlewares
  • domain - business entities
  • service - business logic
  • dto - data transfer models between layers
  • store - repository layer for database/other service calls

Features

  • Routing with chi router
  • DB with GORM
  • Dependency injection using fx
  • Logging with slog
  • Custom middlewares for logging, errors, etc

WIP

  • Unit testing

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published