1.直接使用接口
func m_type(i interface{}) {
switch i.(type) {
case string:
//...
case int:
//...
2020-03-31