예제 #1
0
func saveTo(outputFile string) func(string) result_string.Result {
	return func(content string) result_string.Result {
		err := ioutil.WriteFile(outputFile, []byte(content), filePermission)
		return result_string.NewResult("", err)
	}
}
예제 #2
0
func _readTemplate(_ string) result_string.Result {
	rawTemplate, err := ioutil.ReadFile(*inputFilename)
	return result_string.NewResult(string(rawTemplate), err)
}