This is just to pique my interest of DDD using GO
- git clone this repo
cd
to the cloned repo directory- run
go run .
orgo run main.go
on terminal and you should see some outputs from my random testing
├── core
│ ├── books
│ │ ├── book.go
│ │ └── book_repo.go
│ ├── borrow
│ │ ├── borrow.go
│ │ ├── borrow_repo.go
│ │ └── borrow_service.go
│ ├── member
│ │ ├── member.go
│ │ └── member_repo.go
│ └── status
│ └── status.go
├── infra # could've renamed it to db. your preferences.
│ └── mongodb # you could add other db implementation here.
│ └── inmemory # for the sake of simplicity.
│ ├── book_repo.go
│ ├── borrow_repo.go
│ └── member_repo.go
├── go.mod
└── main.go # bootstrapper