hallgren/eventsourcing

Look at AggregateID as fmt.Stringer interface

hallgren opened this issue · 0 comments

After feedback on reddit: https://www.reddit.com/r/golang/comments/mp8j2h/event_sourcing_a_year_later/gu8euky?utm_source=share&utm_medium=web2x&context=3

The mechanism for the Aggregate ID seems unnecessarily complicated... Why not using interfaces instead? The only important behavior for the Aggregate ID is that it serializes itself into a string (fmt.Stringer)