responese_total := m["responses"].([]interface{})[0].(map[string]interface{})["hits"].(map[string]interface{})["total"]
value, ok := responese_total.(string)
if ok {
fmt.Println(value)
}
go 报 need type assertion
未经允许不得转载:搜云库技术团队 » go 报 need type assertion