packagemainimport("database/sql""fmt"_"github.com/taosdata/driver-go/v2/taosSql")funcmain(){vartaosDSN="root:taosdata@tcp(localhost:6030)/"taos,err:=sql.Open("taosSql",taosDSN)iferr!=nil{fmt.Println("failed to connect TDengine, err:",err)return}fmt.Println("Connected")defertaos.Close()}// use// var taosDSN = "root:taosdata@tcp(localhost:6030)/dbName"// if you want to connect to a default database.