Skip to content

Latest commit

 

History

History
29 lines (15 loc) · 693 Bytes

README.md

File metadata and controls

29 lines (15 loc) · 693 Bytes

This repository aims to show hexagonal architecture in Go. For simplicity, there is a "Todo Task App" with one endpoint to create task.

image

Tech

  • Go

Structure

/cmd

Entrypoint of the project.

/internal/controller

Controller for HTTP requests. It is also primary adapter.

/internal/infra

Intrastructure related code. It is also secondary adapter.

/internal/core

Hexagonal architecture is implemented in directory.

port

This directory includes primary and secondary ports. "Service" is primary port and "Repository" is secondary port.