声明 func TypeIs(target object, type Type) bool go 参数 输入 名称 类型 描述 目标 Object 被查询的目标 类型 Type 被比较的类型 返回 类型 描述 Bool 是否一致