Go项目直连本地MySQL或PostgreSQL需用database/sql搭配第三方驱动:MySQL用github.com/go-sql-driver/mysql,PostgreSQL用github.com/lib/pq;...