node_exporter/vendor/github.com/alecthomas/template
Simon Pasquier cfc06075d1 Bump github.com/prometheus/common to v0.7.0
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2019-09-16 10:59:12 +02:00
..
parse
doc.go
exec.go
funcs.go
go.mod Bump github.com/prometheus/common to v0.7.0 2019-09-16 10:59:12 +02:00
helper.go
LICENSE
README.md
template.go

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