Skip to content

Instantly share code, notes, and snippets.

@AntonStoeckl
Created May 4, 2020 14:28
Show Gist options
  • Save AntonStoeckl/1e4e934481e15bfb6bf98b1859e31271 to your computer and use it in GitHub Desktop.
Save AntonStoeckl/1e4e934481e15bfb6bf98b1859e31271 to your computer and use it in GitHub Desktop.
Example for my iDDD with Go blog article series at https://medium.com/@TonyBologni
package customer
import (
"github.com/AntonStoeckl/go-iddd/service/customeraccounts/application/domain"
)
func Register(with domain.RegisterCustomer) domain.CustomerRegistered {
event := domain.BuildCustomerRegistered(
with.CustomerID(),
with.EmailAddress(),
with.ConfirmationHash(),
with.PersonName(),
1,
)
return event
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment