摘要: 在 golang 中 interface{} 可用于向函数传递任意类型的变量, 但在函数内部使用的话, 该变量的类型就是 interface{}, 也称为空接口类型 比如我们定义一个函数, 输出字符串, 但参数是 interface{} 类型 func echoString(content inte 阅读全文
posted @ 2017-08-09 16:36 thrillerz 阅读(2024) 评论(0) 推荐(0) 编辑