gorm2sql: auto generate sql from gorm model struct A Swiss Army Knife helps you generate sql from model struct. Installation go get github.com/liudanking/gorm2sql Usage user_email.go: type UserBase struct { UserId string `sql:"index:idx_ub"` Ip string `sql:"unique_index:uniq_ip"` } type UserE