2020年11月28日

使用go语言判断不同数据类型

摘要: 代码演示案例 package main import ( "fmt" ) func TypeCheck(items... interface{}){ for _,item:=range items { switch item.(type) { case bool : fmt.Println("thi 阅读全文

posted @ 2020-11-28 15:02 孤灯引路人 阅读(452) 评论(0) 推荐(0) 编辑

导航