package main import ( "fmt" log "github.com/sirupsen/logrus" ) func fakeLoader(job MigrationJob, columns []ColumnType, in <-chan []UnknownRowValues) { for rows := range in { log.Debugf("Chunk received, loading data into...") for i, rowValues := range rows { if i%100 == 0 { logSampleRow(job, columns, rowValues, fmt.Sprintf("row %d", i)) } } } }