Hello world

摘要: interface{}可用于向函数传递任意类型的变量,但对于函数内部,该变量仍然为interface{}类型(空接口类型),不清楚这点将可能导致错误。如以下代码:package mainimport "fmt"/***用于输出数组元素*/func echoArray(a interface{}){ ... 阅读全文
posted @ 2015-10-18 11:41 hershell 阅读(39020) 评论(2) 推荐(5)