英雄:方便,快捷,强大的go模板引擎

时间:2021-02-02 15:45:22
【文件属性】:
文件名称:英雄:方便,快捷,强大的go模板引擎
文件大小:30KB
文件格式:ZIP
更新时间:2021-02-02 15:45:22
go hero template-engine GoGo 英雄 Hero是一个方便,快速且功能强大的go模板引擎,它会预先编译html模板以进行代码。 它已在生产环境中。 产品特点 高性能。 易于使用。 强大。 模板支持Extend和Include 。 文件更改时自动编译。 性能 Hero是基准测试中目前已知的模板引擎中使用最快和最少的内存。 图表数据来自 。 您可以从该项目中找到更多详细信息和基准。 安装 go get github.com/shiyanhui/hero/hero # Hero needs `goimports` to format the generated codes. go get golang.org/x/tools/cmd/goimports 用法 hero [options] -source string the html template file or dir (default " ./ " ) -dest string generated golang files dir, it will be the same with source if not set
【文件预览】:
hero-master
----util_test.go(557B)
----parser.go(8KB)
----sort.go(1KB)
----README.md(8KB)
----bufferpool.go(830B)
----doc.go(7KB)
----sort_test.go(2KB)
----examples()
--------app()
----generator_test.go(5KB)
----parser_test.go(8KB)
----bufferpool_test.go(404B)
----README_CN.md(6KB)
----LICENSE.md(10KB)
----hero()
--------main.go(2KB)
----util.go(2KB)
----.travis.yml(149B)
----generator.go(7KB)

网友评论