gpt4 book ai didi

parsing - GAE Go template.Execute,传递带有向量的结构

转载 作者:IT王子 更新时间:2023-10-29 02:18:23 25 4
gpt4 key购买 nike

为了方便起见,我将 Go 应用程序中的一些数据存储在结构的 vector.Vector 中。我想通过 template.Execute 在 Google App Engine 网页上显示矢量中的所有数据。是否可能以及如何访问已解析的 html 文件中的数据?如果我改用数组或 slice 会更容易吗?

最佳答案

使用 slice 。

Go Weekly Snapshot History 2011-10-18

The container/vector package has been deleted. Slices are better: SliceTricks.

关于parsing - GAE Go template.Execute,传递带有向量的结构,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8362481/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com