mirror of
https://github.com/pikami/tiktok-dl.git
synced 2025-02-05 15:26:38 +00:00
1b3f985f42
Added `-quiet` flag Move out error messages to separate file
13 lines
225 B
Go
13 lines
225 B
Go
package utils
|
|
|
|
import (
|
|
"io/ioutil"
|
|
)
|
|
|
|
// ReadFileAsString - Returns contents of given file
|
|
func ReadFileAsString(fileName string) string {
|
|
content, err := ioutil.ReadFile(fileName)
|
|
CheckErr(err)
|
|
return string(content)
|
|
}
|