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