caching/vendor/github.com/alecthomas/template
Matt Moore 2825854d52
[master] Auto-update dependencies (#287)
Produced via:
  `./hack/update-deps.sh --upgrade && ./hack/update-codegen.sh`
/assign n3wscott vagababov
/cc n3wscott vagababov
2020-07-15 12:06:33 -07:00
..
parse [master] Auto-update dependencies (#287) 2020-07-15 12:06:33 -07:00
LICENSE [master] Auto-update dependencies (#287) 2020-07-15 12:06:33 -07:00
README.md [master] Auto-update dependencies (#287) 2020-07-15 12:06:33 -07:00
doc.go [master] Auto-update dependencies (#287) 2020-07-15 12:06:33 -07:00
exec.go [master] Auto-update dependencies (#287) 2020-07-15 12:06:33 -07:00
funcs.go [master] Auto-update dependencies (#287) 2020-07-15 12:06:33 -07:00
go.mod [master] Auto-update dependencies (#287) 2020-07-15 12:06:33 -07:00
helper.go [master] Auto-update dependencies (#287) 2020-07-15 12:06:33 -07:00
template.go [master] Auto-update dependencies (#287) 2020-07-15 12:06:33 -07:00

README.md

Go's text/template package with newline elision

This is a fork of Go 1.4's text/template package with one addition: a backslash immediately after a closing delimiter will delete all subsequent newlines until a non-newline.

eg.

{{if true}}\
hello
{{end}}\

Will result in:

hello\n

Rather than:

\n
hello\n
\n