You might want to take a look at https://github.com/marcusolsson/goddd
and https://github.com/go-kit/kit/tree/master/examples/shipping.

On Mon, Oct 31, 2016 at 12:02 PM, JM <j...@magentatech.com> wrote:
> im building a micro service layer using the following folder structure.  I
> have unit tests for everything and each if store in it's relative folder.  I
> am thinking of moving everything in my domain model into one root folder and
> not have sub folders for each.  then just have NewAggregate1 instead of
> New() since all will be under the same package.  Is this bad design, I
> assume so since their is no clear separation between aggregates, but wanted
> to get opinions.  How can i run my tests "go test" for my entire domain
> model is they are in sub folders?  Right now i only know how to do this per
> folder level.  Thanks.
>
> application (application services that wrap everything)
> command (command services)
> query (query logic outside of domain)
> common
> domainmodel
>>>shared
>>>aggregate1
>>>aggregate2
> infrastructure
>>>logging
>>>config
>>>repository
> service (micro services)
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to