How to range over slice of structs instead of struct of slices

后端 未结 2 1418
一向
一向 2021-02-05 14:28

Having played around with Go HTML templates a bit, all the examples I found for looping over objects in templates were passing structs of slices to the template, somewhat like i

2条回答
  •  野的像风
    2021-02-05 15:27

    I don't have the rep to comment, but to answer @ROMANIA_engineer, the source cited by elithrar has been retired, for anyone still looking for this reference :

    This book has been removed as it will shortly be published by APress. Please see Network Programming with Go: Essential Skills for Using and Securing Networks

提交回复
热议问题