Esempio n. 1
0
func replace(target, value string) func(string) result_string.Result {
	return func(body string) result_string.Result {
		return result_string.Success(
			strings.Replace(body, target, value, -1),
		)
	}
}
Esempio n. 2
0
func readTemplate() result_string.Result {
	return result_string.Success("").Bind(_readTemplate)
}