From d5ed3231917d0f5c9fdc635e10d576f8d5b4b175 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Thu, 22 Sep 2022 11:51:29 +0200 Subject: [PATCH] docs: fix template helper documentation --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0fbd39a..1fc63dd 100644 --- a/README.md +++ b/README.md @@ -127,9 +127,11 @@ s.Bold().Underline() ## Template Helpers +`termenv` provides a set of helper functions to style your Go templates: + ```go // load template helpers -f := termenv.TemplateFuncs(output.Profile) +f := output.TemplateFuncs() tpl := template.New("tpl").Funcs(f) // apply bold style in a template