mirror of
https://github.com/pikami/tiktok-dl.git
synced 2026-01-24 12:12:57 +00:00
Improved status output
Added `-quiet` flag Move out error messages to separate file
This commit is contained in:
@@ -2,14 +2,11 @@ package utils
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"log"
|
||||
)
|
||||
|
||||
// ReadFileAsString - Returns contents of given file
|
||||
func ReadFileAsString(fileName string) string {
|
||||
content, err := ioutil.ReadFile(fileName)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
CheckErr(err)
|
||||
return string(content)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user