2019年6月12日

golang类型断言的使用(Type Assertion)

摘要: 第一部分 首先,转自https://studygolang.com/articles/3314对断言的基本介绍 golang的语言中提供了断言的功能。golang中的所有程序都实现了interface{}的接口,这意味着,所有的类型如string,int,int64甚至是自定义的struct类型都就 阅读全文

posted @ 2019-06-12 10:25 钱小小 阅读(21545) 评论(0) 推荐(0) 编辑

导航