go 报 need type assertion


responese_total := m["responses"].([]interface{})[0].(map[string]interface{})["hits"].(map[string]interface{})["total"]
value, ok := responese_total.(string)
if ok {
	fmt.Println(value)
}    

原文地址:https://www.cnblogs.com/mysticbinary/p/13099044.html