go类型断言 提示!

hellsam · 2018-01-03 23:23:04 · 1087 次点击
for _, v := range data {
    if val, ok := v.(string); ok {
       //
    }
//
}
#1