This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
packagegormExample
import"log"
// 原生查询测试
funcRawSelect(){
// 结果类型
typeResultstruct{
IDuint
Subjectstring
Likes,Viewsint
}
varrs[]Result
// SQL
sql:="SELECT `id`, `subject`, `likes`, `views` FROM `msb_content` WHERE `likes` > ? ORDER BY `likes` DESC LIMIT ?"