internal/

directory
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2026 License: MIT

README

internal

Pattern used

  • Dependencies point inward: delivery -> usecase -> repository contracts.
  • infra implements contracts; inner layers never import infra.
  • Constructor injection wired in internal/app (composition root).
  • Small, consumer-owned interfaces (ISP).

How to extend

  1. Usecase in internal/usecase/<feature>/.
  2. Contracts in internal/repository/<area>/.
  3. Infra implementation in internal/infra/....
  4. Transport handler in internal/delivery/....
  5. Wire in the matching process composition file (for HTTP, internal/app/api/api_*_wiring.go).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL