type    switchs用法

 

这里存在一个未知类型变量的内省操作(introspection operation),就是x.(type),其中x是interface{}类型

 

type switch使用

 

相关文章: