add chapter 15.7 (#683)

This commit is contained in:
marjune
2019-07-16 10:55:54 +08:00
committed by ᴊ. ᴄʜᴇɴ
parent 9580580bda
commit c78236269d
8 changed files with 438 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
// pipeline1.go
package main
import (
"os"
"text/template"
)
func main() {
t := template.New("template test")
t = template.Must(t.Parse("This is just static text. \n{{\"This is pipeline data - because it is evaluated within the double braces.\"}} {{`So is this, but within reverse quotes.`}}\n"))
t.Execute(os.Stdout, nil)
}
/*
This is just static text.
This is pipeline data - because it is evaluated within the double braces. So is this, but within reverse quotes.
*/