You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-fly/tmpl/index.go

14 lines
267 B

package tmpl
import (
"github.com/taoshihan1991/imaptool/tools"
"html/template"
"net/http"
)
func RenderList(w http.ResponseWriter, render interface{}) {
html:=tools.FileGetContent("html/list.html")
t, _ := template.New("list").Parse(html)
t.Execute(w,nil)
}