jason 075d766964 first | il y a 3 ans | |
---|---|---|
.. | ||
parse | il y a 3 ans | |
testdata | il y a 3 ans | |
LICENSE | il y a 3 ans | |
README.md | il y a 3 ans | |
doc.go | il y a 3 ans | |
example_test.go | il y a 3 ans | |
examplefiles_test.go | il y a 3 ans | |
examplefunc_test.go | il y a 3 ans | |
exec.go | il y a 3 ans | |
exec_test.go | il y a 3 ans | |
funcs.go | il y a 3 ans | |
go.mod | il y a 3 ans | |
helper.go | il y a 3 ans | |
multi_test.go | il y a 3 ans | |
template.go | il y a 3 ans |
text/template
package with newline elisionThis 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