// Events returns uncommitted domain events (produced by calling Apply)
Events returns uncommitted domain events (produced by calling Apply)
// Events returns uncommitted domain events ( produced by calling Apply )
func (a *AggregateRoot) Events() []interface{} {
	if a.domainEvents == nil {
		return []interface{}{}
	}
	return a.domainEvents
}
func ( a * AggregateRoot ) Events ( ) [ ] interface { } { if a . domainEvents == nil { return [ ] interface { } { } } return a . domainEvents }
Events returns uncommitted domain events (produced by calling Apply)
Events returns uncommitted domain events ( produced by calling Apply )