package
1.0.0
Repository: https://github.com/cwww3/ddd-go.git
Documentation: pkg.go.dev

# Functions

NewCustomer is a factory to create a new Customer aggregate It will validate that the name is not empty.
NewProduct will create a new product will return error if name of description is empty.

# Variables

ErrInvalidPerson is returned when the person is not valid in the NewCustome factory.
ErrMissingValues is returned when a product is created without a name or description.

# Structs

Customer is an aggregate that combines all entities needed to represent a customer.
Product is a aggregate that combines item with a price and quantity.