go_study/fabric-main/vendor/github.com/alecthomas/template
Msy-msu ba621c6934 add two projects 2023-07-02 17:15:59 +08:00
..
parse add two projects 2023-07-02 17:15:59 +08:00
LICENSE add two projects 2023-07-02 17:15:59 +08:00
README.md add two projects 2023-07-02 17:15:59 +08:00
doc.go add two projects 2023-07-02 17:15:59 +08:00
exec.go add two projects 2023-07-02 17:15:59 +08:00
funcs.go add two projects 2023-07-02 17:15:59 +08:00
helper.go add two projects 2023-07-02 17:15:59 +08:00
template.go add two projects 2023-07-02 17:15:59 +08: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