16 lines
184 B
Go
16 lines
184 B
Go
package main
|
|
|
|
import (
|
|
"io/ioutil"
|
|
"log"
|
|
)
|
|
|
|
func fileRead(src string) string {
|
|
content, err := ioutil.ReadFile(src)
|
|
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
|
|
return string(content)
|
|
}
|