Skip to content

Commit

Permalink
refactor(exp/gtest/README.md): update User creation function to use D…
Browse files Browse the repository at this point in the history
…ata() method for event data access

This change is made to align with the updated event handling mechanism where event data is accessed via the Data() method.
  • Loading branch information
bounoable committed Sep 17, 2023
1 parent 49371d5 commit 1126952
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exp/gtest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ func (u *User) Create(username string, age int) error {
}

func (u *User) created(e event.Of[UserCreation]) {
u.Username = e.Username
u.Age = e.Age
u.Username = e.Data().Username
u.Age = e.Data().Age
}
```

Expand Down

0 comments on commit 1126952

Please sign in to comment.