📅  最后修改于: 2022-03-11 14:44:59.512000             🧑  作者: Mango
var b bytes.Buffer
t,err := template.New("").Parse("Hello {.}")
if err != nill{ panic(err) }
err = t.Execute(&b, "Lazy Lizard")
if err != nill{ panic(err) }
fmt.Println(b.String())