Middleware support added. HTML Parsing disable option added.

Goroutine leaks will be tested using leaktest lib.
This commit is contained in:
Musab Gültekin
2019-06-15 17:55:40 +03:00
parent 4799b0f7b4
commit 7b23596a2d
9 changed files with 53 additions and 17 deletions

View File

@ -49,12 +49,11 @@ func (e *CSVExporter) Export(response *geziyor.Response) {
values = append(values, fmt.Sprint(val.Index(i)))
}
// TODO: Map type support is incomplete. Ordering is wrong. Needs to be sorted by map keys (CSV headers).
case reflect.Map:
iter := val.MapRange()
for iter.Next() {
values = append(values, fmt.Sprint(iter.Value()))
}
//case reflect.Map:
// iter := val.MapRange()
// for iter.Next() {
// values = append(values, fmt.Sprint(iter.Value()))
// }
}
// Write to file