golang的text/template的template标签name能动态的吗?

{{template "{{.tpl}}" {{.cond}} }}

name 我测试时好像不能传变量进去

阅读 1.8k
1 个回答

标签是读取的静态变量。不能动态

推荐问题