basically I have an object wanted to pass to the frontend. I logged it in the backend and it was not null, but in the frontend when I alerted it, it becomes null.
...
presentation := &presentationStruct {
Object: object,
}
log.Errorf("%v", object) // not null
template.Execute(writer, presentation)
...
// but it becomes null here
alert({{.Object}})
The object is a type of
map[string]map[string]struct {
[]float32
map[int][]struct {
string
float32
}
}
Is it because the type is too complicated?