ctdo.de/file.go

17 lines
185 B
Go
Raw Normal View History

package main
import (
"io/ioutil"
"log"
)
func file_read(src string) string {
content, err := ioutil.ReadFile(src)
if err != nil {
log.Fatal(err)
}
return string(content)
}