问题内容我用的github.com/go-sql-driver/mysql这个驱动,我像下面这样写没有报错,但是里面的数据为空或者0typedatastruct{idintnamestringweightint}rows,_:=db.Query("select*fromtestwhereid=?",
go语言如何把mysql查询的数据保存到结构体或者map啊?
