0
的数组这是什么说法意味着围棋:Golang地图与价值观
Student.bookMap=map[string][]*model.Books{}
其中Student
是:
type Student struct{
bookMap map[string][]*model.Books
}
,我们有一个模型包
package model
type Books struct {
bookName string `db:"Name"`
bookAuthor string `db:"Author"`
}