17 lines
185 B
Go
17 lines
185 B
Go
|
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)
|
||
|
}
|