ThePiachu
ThePiachu

Reputation: 9175

GAE Go template.Execute, passing a struct with vector

I'm storing some data in a Go app in a struct's vector.Vector for convenience. I want to display all the data from the vector on Google App Engine webpage through template.Execute. Is it possible and how would I access the data in the parsed html file? Would it be easier if I used an array or slice instead?

Upvotes: 1

Views: 129

Answers (1)

peterSO
peterSO

Reputation: 166549

Use slices.

Go Weekly Snapshot History 2011-10-18

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

Upvotes: 1

Related Questions