[Gin]sql: Scan error on column index 2, name
时间不能直接用scan来读取
e := row.Scan(&u.ID, &u.Title, &u.EventTime, &u.EventAddress)
解救有方案:在创建连接的地址后面添加 ?parseTime=true
时间不能直接用scan来读取
e := row.Scan(&u.ID, &u.Title, &u.EventTime, &u.EventAddress)
解救有方案:在创建连接的地址后面添加 ?parseTime=true