CaptainCodeman / clean-go

Clean Architecture Example in Go
279 stars 26 forks source link

using engine/internal for domain entities #7

Open zboralski opened 6 years ago

zboralski commented 6 years ago

Wouldn't it make sense to move the domain package to engine/internal?

When the go command sees an import of a package with internal in its path, it verifies that the package doing the import is within the tree rooted at the parent of the internal directory.

CaptainCodeman commented 6 years ago

Possibly, although in real apps I often have other services that make use of the same domain structs so it's useful being able to pull them in to those.

CaptainCodeman commented 6 years ago

"services" being an AppEngine / GCP thing - really separate apps in another codebase that need to work with the same data