Skip to content

Instantly share code, notes, and snippets.

@thePunderWoman
Created May 9, 2013 16:24
Show Gist options
  • Save thePunderWoman/5548574 to your computer and use it in GitHub Desktop.
Save thePunderWoman/5548574 to your computer and use it in GitHub Desktop.
Duplicate entry issue
func SaveLogs(logs []History) {
for _, logentry := range logs {
go logentry.Save()
}
}
func SaveLogs(logs []History) {
for i, _ := range logs {
go logs[i].Save()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment