Exemple #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),
		)
	}
}
Exemple #2
0
func readTemplate() result_string.Result {
	return result_string.Success("").Bind(_readTemplate)
}