ipmi_exporter/vendor/github.com/alecthomas/template
Conrad Hoffmann 670b92c799 Initial public release 2018-05-24 16:28:06 +02:00
..
parse Initial public release 2018-05-24 16:28:06 +02:00
LICENSE Initial public release 2018-05-24 16:28:06 +02:00
README.md Initial public release 2018-05-24 16:28:06 +02:00
doc.go Initial public release 2018-05-24 16:28:06 +02:00
exec.go Initial public release 2018-05-24 16:28:06 +02:00
funcs.go Initial public release 2018-05-24 16:28:06 +02:00
helper.go Initial public release 2018-05-24 16:28:06 +02:00
template.go Initial public release 2018-05-24 16:28:06 +02: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