其他分享
首页 > 其他分享> > 精通Go系统库之reflect包(Go语言分析第一篇并做序)

精通Go系统库之reflect包(Go语言分析第一篇并做序)

作者:互联网

== 本篇持久更新 ==

Type接口

PkgPath()string

原文如下:

// PkgPath returns a defined type's package path, that is, the import path
// that uniquely identifies the package, such as "encoding/base64".
// If the type was predeclared (string, error) or not defined (*T, struct{},
// []int, or A where A is an alias for a non-defined type), the package path
// will be the empty string.

【分析】


标签:做序,string,package,defined,PkgPath,reflect,Go,path,type
来源: https://www.cnblogs.com/tinaluo/p/16663920.html