pipeline1.go 478 B

123456789101112131415161718
  1. // pipeline1.go
  2. package main
  3. import (
  4. "os"
  5. "text/template"
  6. )
  7. func main() {
  8. t := template.New("template test")
  9. 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"))
  10. t.Execute(os.Stdout, nil)
  11. }
  12. /*
  13. This is just static text.
  14. This is pipeline data - because it is evaluated within the double braces. So is this, but within reverse quotes.
  15. */