Skip to content

ikurotime/go_api_clean_architecture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Go Clean Arquitecture Example 🎯

This is a simple example of a Go project using Clean Arquitecture.

Project Structure 📁

.
├── src/
│   ├── domain/
│       └── user.go
│   ├── infrastructure/
│   │   ├── router.go
│   │   └── sqlHandler.go
│   ├── interfaces/
│   │   ├── api/
│   │   │   ├── context.go
│   │   │   └── user_controller.go
│   │   └── database/
│   │   │   ├── sql_handler.go
│   │   │   └── user_repository.go
│   ├── usecase/
│   │   ├── user_interactor.go
│   │   └── user_repository.go
│   └── server.go
├── go.mod
├── go.sum
└── README.md

How to run 🚀

go run src/server.go

About

Example of Go http api with clean architecture

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages