package main import ( "database/sql" "fmt" "strings" "time" ) import ( _ "github.com/mattn/go-adodb" ) type Mssql struct { *sql.DB database string dataSource string windows bool sa SA } type SA struct { user string passwd string } type User struct { Age int32 `sql:"AGE"` Name string `sql:"NAME"` AutoDate time.Time `sql:"AUTO_DATE"` } func (m *Mssql) Open() (err error) { var conf []string conf = append(conf, "Provider=SQLOLEDB") conf = append(conf, "Data Source="+m.dataSource) if m.windows { conf = append(conf, "integrated security=SSPI") } conf = append(conf, "Initial Catalog="+m.database) conf = append(conf, "user id="+m.sa.user...