【发布时间】:2019-02-04 02:34:38
【问题描述】:
在php中获取索引号:
foreach much as index => each{
//get index number from index
}
如何获取go中的索引号?
{{ range .post }}
{{ // how can i get index number? }}
{{ .Id }}
{{ .Name}}
{{ end}}
【问题讨论】:
标签: html loops templates go go-templates