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()}