Open bounoable opened 1 year ago
package auth import "github.com/modernice/goes/aggregate" const UserRegistered = aggregate.Event("auth.user.registered") type User struct { *aggregate.Base } func (u *User) Register(email string) { UserRegistered.New(u, email) }