Added saving to json.gz and csv.gz

This commit is contained in:
2016-03-28 23:42:28 +03:00
parent b39de5538a
commit 7b5466be3e
2 changed files with 31 additions and 0 deletions

View File

@@ -309,6 +309,10 @@ func main() {
SaveToCsvFile(exportingData, keyMap, *outputPath, *fullExport)
case ".json":
SaveToJSONFile(exportingData, keyMap, *outputPath, *fullExport)
case ".csv.gz":
SaveToCsvGzFile(exportingData, keyMap, *outputPath, *fullExport)
case ".json.gz":
SaveToJSONGzFile(exportingData, keyMap, *outputPath, *fullExport)
default:
log.Fatal("Incorrect file type")
}