Documentation
¶
Index ¶
Constants ¶
View Source
const (
StdLanguage = "go"
)
Variables ¶
This section is empty.
Functions ¶
func GetRawContent ¶
func IsTestPackage ¶
Types ¶
type GoParser ¶
type GoParser struct {
// contains filtered or unexported fields
}
golang parser, used parse multle packages from the entire project
func (*GoParser) ParseModule ¶
func (*GoParser) ParsePackage ¶
type PackageCache ¶ added in v0.2.0
type PackageCache struct {
// contains filtered or unexported fields
}
PackageCache 缓存 importPath 是否是 system package
func NewPackageCache ¶ added in v0.2.0
func NewPackageCache(lruCapacity int) *PackageCache
func (*PackageCache) IsStandardPackage ¶ added in v0.2.0
func (pc *PackageCache) IsStandardPackage(path string) bool
IsStandardPackage 检查一个包是否为标准库,并使用内部缓存。
Click to show internal directories.
Click to hide internal directories.