On Mon, Aug 30, 2021 at 12:01 PM Victor Medrano wrote:
>
> I.m new to go, and working with a web aplicación I need to pass a tray of
> struct to the template.
> something like this
>
> type Month struct {
> Mname string
> Color string
> Id int
> }
>
>
> type Year struct {
> Yname, Color string
>
I.m new to go, and working with a web aplicación I need to pass a tray of
struct to the template.
something like this
type Month struct {
Mname string
Color string
Id int
}
type Year struct {
Yname, Color string
Selected bool
}
type Data struct {
Years []*Year
Months []*Month
}
but I haven f