```go
package main
import (
"fmt"
"github.com/xuri/excelize/v2"
)
type Vdi struct {
OldRealID string
HostName string
SiteID string
RealID string
}
func GetSql( ) {
f, err := excelize.OpenFile("D:\\vdi.xlsx")
if err != nil {
println(err.Error())
return
}
rows, err := f.GetRows("Sheet1")
for i, row := range rows {
if i < 2 {
continue
}
vdi := Vdi{
OldRealID: row[0],
HostName: row[1],
SiteID: row[2],
RealID: row[3],
}
fmt.Println(vdi)
}
}
func main() {
GetSql()
}