ddd

module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2023 License: MIT

README

ddd

The Go linter ddd checks that Domain Driven Design layers are applied properly. Main purpose is to avoid muddy code and to make it easier to keep the code clean and separated.

For example, a file in the domain package must not directly import a file from any of the other layers.

** NOTE: the compiler will complain about the imports in testdatapackages. This is accepted. DO NOT FIX!

Default Rules

Package domain can directly import from

  • domain

Package application can directly import from

  • domain
  • application

Package infrastructure can directly import from

  • domain
  • ìnfrastructure

Package ìnterfaces can directly import from

  • domain
  • interfaces
  • application

Install

Checkout the repository and run the following command from the project root directory

go build -o $GOPATH/bin/ddd ./cmd/main.go

Based on the following tutorials:

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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