mirror of
https://github.com/pikami/tiktok-dl.git
synced 2024-11-25 17:25:42 +00:00
15 lines
258 B
Go
15 lines
258 B
Go
package utils
|
|
|
|
import (
|
|
"io/ioutil"
|
|
|
|
checkErr "./checkErr"
|
|
)
|
|
|
|
// ReadFileAsString - Returns contents of given file
|
|
func ReadFileAsString(fileName string) string {
|
|
content, err := ioutil.ReadFile(fileName)
|
|
checkErr.CheckErr(err)
|
|
return string(content)
|
|
}
|