Skip to content

Commit

Permalink
feat(document): add WithId in bingo.Document
Browse files Browse the repository at this point in the history
  • Loading branch information
Noku committed Oct 20, 2023
1 parent ff61247 commit b374498
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions document.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ type Document struct {
func (d Document) Key() []byte {
return []byte(d.ID)
}

func (d Document) WithId(id string) Document {
d.ID = id
return d
}

0 comments on commit b374498

Please sign in to comment.