alertmanager/vendor/github.com/alecthomas/template
Simon Pasquier dc5fc02d22 [amtool] use kingpin.v2 (#1330)
* Use default values to store values from config
* fix typo and reserved keywork
* move to long help texts
* add one more unit test for resolver
* update comments

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-04-24 09:35:15 +02:00
..
parse [amtool] use kingpin.v2 (#1330) 2018-04-24 09:35:15 +02:00
LICENSE [amtool] use kingpin.v2 (#1330) 2018-04-24 09:35:15 +02:00
README.md [amtool] use kingpin.v2 (#1330) 2018-04-24 09:35:15 +02:00
doc.go [amtool] use kingpin.v2 (#1330) 2018-04-24 09:35:15 +02:00
exec.go [amtool] use kingpin.v2 (#1330) 2018-04-24 09:35:15 +02:00
funcs.go [amtool] use kingpin.v2 (#1330) 2018-04-24 09:35:15 +02:00
helper.go [amtool] use kingpin.v2 (#1330) 2018-04-24 09:35:15 +02:00
template.go [amtool] use kingpin.v2 (#1330) 2018-04-24 09:35:15 +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