Skip to content

Instantly share code, notes, and snippets.

@gabelula
Created November 10, 2015 22:21
Show Gist options
  • Save gabelula/7b86ba2216280e93cf97 to your computer and use it in GitHub Desktop.
Save gabelula/7b86ba2216280e93cf97 to your computer and use it in GitHub Desktop.
var tables map[string]string
tables = GetTables()
for collectionName, tableName := range tables {
go func(collectionName string, tableName string) {
log.Printf("Pushing data %s into collection %s.", tableName, collectionName)
retrieves(collectionName, tableName)
}(collectionName, tableName)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment