Node_Exporter/vendor/github.com/alecthomas/template
Calle Pettersson dfe07eaae8 Switch to kingpin flags (#639)
* Switch to kingpin flags

* Fix logrus vendoring

* Fix flags in main tests

* Fix vendoring versions
2017-08-12 15:07:24 +02:00
..
parse Switch to kingpin flags (#639) 2017-08-12 15:07:24 +02:00
doc.go Switch to kingpin flags (#639) 2017-08-12 15:07:24 +02:00
exec.go Switch to kingpin flags (#639) 2017-08-12 15:07:24 +02:00
funcs.go Switch to kingpin flags (#639) 2017-08-12 15:07:24 +02:00
helper.go Switch to kingpin flags (#639) 2017-08-12 15:07:24 +02:00
LICENSE Switch to kingpin flags (#639) 2017-08-12 15:07:24 +02:00
README.md Switch to kingpin flags (#639) 2017-08-12 15:07:24 +02:00
template.go Switch to kingpin flags (#639) 2017-08-12 15:07:24 +02:00

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