package
0.0.0-20231208061952-f10d33120ced
Repository: https://github.com/liguoqinjim/go-labs.git
Documentation: pkg.go.dev

# README

遍历slice

NOTICE

  • {{index . 3}},这样就可以得到slice里面index为3的值

运行结果

Imgur

参考资料

https://stackoverflow.com/questions/12701452/how-to-index-a-slice-element