是否类型一致

STD库
Both Server and Client
Both Mobile and PC

判断目标变量是否为指定类型

声明

func TypeIs(target object, type Type) bool
go

参数

输入

名称 类型 描述
目标 Object 被查询的目标
类型 Type 被比较的类型

返回

类型 描述
Bool 是否一致