1 Star 0 Fork 0

飞的不是很熟练的猪/go-template

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
test.tmpl 314 Bytes
一键复制 编辑 原始数据 按行查看 历史
飞的不是很熟练的猪 提交于 2022-04-04 19:49 +08:00 . ‘go语言模板学习’
{{ define "test" }}
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title>自定义函数</title>
</head>
<body>
{{/*
{{ a | b }}
这种写法的意思是将 a 的输出通过管道再作为 b 的输入,最后呈现出来的是 b 的输出
*/}}
{{ . | scold }}
</body>
</html>
{{end}}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/west-wood-does-not-live/go-template.git
git@gitee.com:west-wood-does-not-live/go-template.git
west-wood-does-not-live
go-template
go-template
master

搜索帮助