go 反射包

一、什么是反射?

反射是用程序检查其所拥有的结构,尤其是类型的一种能力;

 

二、Printf

Printf 的函数声明为:

func Printf(format string, args ... interface{}) (n int, err error)

  

... 参数为空接口类型。
posted @ 2018-07-27 12:22  liubiaos  阅读(239)  评论(0编辑  收藏  举报