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