摘要: templeate三板斧 创建模版: 模版文件以.tmpl结尾, 文件的语法和html相同。 解析模版 t, err := template.ParseFile("./filename.tmpl") if err != nil { //错误处理 } 渲染模版 err = t.Execute(w, d 阅读全文
posted @ 2023-01-17 00:47 wangturing 阅读(223) 评论(0) 推荐(0)