You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
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 found the way to fill data Data structure from mysql.
I came to this group because I found it on a book.
so thanks.
Victor
Amit Saha
unread,
Aug 30, 2021, 1:33:16 AM8/30/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Victor Medrano, golang-nuts
Just to clarify, you want to first create an object of Data struct
type by querying data from a MySQL database and then passing the
object to a template where you will render a HTML page using the data?