2023-01-26 20:58:13 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"io/ioutil"
|
|
|
|
"log"
|
|
|
|
)
|
|
|
|
|
2023-01-26 22:13:44 +00:00
|
|
|
func fileRead(src string) string {
|
2023-01-26 20:58:13 +00:00
|
|
|
content, err := ioutil.ReadFile(src)
|
|
|
|
|
|
|
|
if err != nil {
|
2023-01-28 17:44:11 +00:00
|
|
|
log.Fatal(err.Error())
|
2023-01-26 20:58:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return string(content)
|
|
|
|
}
|