我正在执行一个包含2个并行数组(相同大小)的模板,我想并行列出两个数组中的项目,如何在范围内使用索引?
这显然不起作用:
{{range $i, $e := .First}}$e - {{index .Second $i}}{{end}}
go
go ×1