Skip to content

Project Structure

Angelo Costa edited this page Jul 20, 2024 · 2 revisions

Project Structure

hexagonal-architecture/
|-- cmd/
|   |-- server/
|       |-- main.go
|-- internal/
|   |-- app/
|   |   |-- application.go
|   |-- domain/
|   |   |-- model/
|   |   |   |-- address.go
|   |   |   |-- company.go
|   |   |   |-- user.go
|   |   |-- service/
|   |       |-- company_service.go
|   |-- infrastructure/
|       |-- db/
|       |   |-- db.go
|       |-- http/
|       |   |-- handler/
|       |   |   |-- company_handler.go
|       |-- repository/
|       |   |-- company_repository.go
|       |-- router
|           |-- router.go
|-- go.mod
|-- go.sum

Clone this wiki locally