shiyanhui / hero

A handy, fast and powerful go template engine.
https://shiyanhui.github.io/hero
Other
1.57k stars 96 forks source link

请问怎么在echo中使用? #71

Closed hanfuyin closed 5 years ago

hanfuyin commented 5 years ago

请问怎么在echo中使用?

TomLiu-GitHub commented 5 years ago
buffer := new(bytes.Buffer)
template.XXXX(u, buffer)
return c.Stream(200, echo.MIMETextHTMLCharsetUTF8, buffer)
shiyanhui commented 5 years ago

如上