Scanning Query Result
Precise Match
Gobatis will check the struct which receiving query rows match the the columns exactly.
err = batis.Query(`select * from users where id = #{id}`,batis.Param("id",1))).Scan(&user).Error
Loose Dest
err = batis.Query(`select * from users where id = #{id}`,batis.Param("id",1))).Scan(batis.LooseDest(&user)).Error