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