用
[]interface{}type Results struct { Rows []interface{} `json:"results"`}如果要访问存储在其中的值,则必须使用类型断言
[]interface{}for _, row := range results.Rows { switch r := row.(type) { case string: fmt.Println("string", r) case float64: fmt.Println("float64", r) case int64: fmt.Println("int64", r) default: fmt.Println("not found") } }


