feragstring/test/util.go

12 lines
194 B
Go
Raw Normal View History

package test
import "io/ioutil"
func getTestFileContent(filename string) string {
testcontent, err := ioutil.ReadFile(filename)
if err != nil {
panic(err)
}
return string(testcontent)
}