jason 075d766964 first 3 éve
..
parse 075d766964 first 3 éve
testdata 075d766964 first 3 éve
LICENSE 075d766964 first 3 éve
README.md 075d766964 first 3 éve
doc.go 075d766964 first 3 éve
example_test.go 075d766964 first 3 éve
examplefiles_test.go 075d766964 first 3 éve
examplefunc_test.go 075d766964 first 3 éve
exec.go 075d766964 first 3 éve
exec_test.go 075d766964 first 3 éve
funcs.go 075d766964 first 3 éve
go.mod 075d766964 first 3 éve
helper.go 075d766964 first 3 éve
multi_test.go 075d766964 first 3 éve
template.go 075d766964 first 3 éve

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