HTML 渲染
requiem573 opened this issue · 0 comments
requiem573 commented
I want to write template into bytes.Buffer,like
var tpl bytes.Buffer
if err := t.Execute(&tpl, data); err != nil {
log.Println(err)
return
}
result := tpl.String()
i want write this use gin,how to do?