Closed groggy7 closed 1 year ago
copiedEvents := make([]event.Event, len(tx.insertedEvents)) copy(copiedEvents, tx.insertedEvents)
return copiedEvents
with this code i copied the slice and returned it.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
thanks! 👍🏼
copiedEvents := make([]event.Event, len(tx.insertedEvents)) copy(copiedEvents, tx.insertedEvents)
return copiedEvents
with this code i copied the slice and returned it.