I have a struct that contains a slice of type string like the following.
type Data struct {
DataFields []string
}
Within my html template file I would like to range over the string slice. However, the individual fields are just strings without any struct name. How can I loop over a slice that contains a simple type such as string, int, etc?