Renamed function
This commit is contained in:
@@ -236,7 +236,7 @@ func GetStatTimesFromDb(db *sql.DB, fromTime int64, keyMap map[uint8]string) []S
|
|||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|
||||||
func FindFileType(path string) string {
|
func GetFileType(path string) string {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -305,7 +305,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
case *outputPath != "":
|
case *outputPath != "":
|
||||||
exportingData := GetStatTimesFromDb(db, 0, keyMap)
|
exportingData := GetStatTimesFromDb(db, 0, keyMap)
|
||||||
filetype := findFileType(*outputPath)
|
filetype := GetFileType(*outputPath)
|
||||||
log.Println(filetype)
|
log.Println(filetype)
|
||||||
switch filetype {
|
switch filetype {
|
||||||
case ".csv":
|
case ".csv":
|
||||||
|
|||||||
Reference in New Issue
Block a user