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
Warning: A non-numeric value encountered in /data/wangzhan/tech.souyunku.com.wp/wp-content/themes/dux/functions-theme.php on line 1154
赞(89) 打赏
未经允许不得转载:搜云库技术团队 » go 报 need type assertion