Versions in this module Expand all Collapse all v0 v0.7.1 Aug 17, 2019 v0.7.0 Jul 20, 2019 Changes in this version + var ErrInvalidGoVersion = errors.New("invalid go version") + var ErrNoGoVersionFound = errors.New("no goversion found") + var ErrNoPCLNTab = errors.New("no pclntab located") + var ErrNotEnoughBytesRead = errors.New("not enough bytes read") + var ErrSectionDoesNotExist = errors.New("section does not exist") + var ErrUnsupportedFile = errors.New("unsupported file") + func GoVersionCompare(a, b string) int + func InterfaceDef(typ *GoType) string + func IsStandardLibrary(pkg string) bool + func MethodDef(typ *GoType) string + func StructDef(typ *GoType) string + type ChanDir int + const ChanBoth + const ChanRecv + const ChanSend + type FileEntry interface + LineStart func() int + type FileInfo struct + ByteOrder binary.ByteOrder + OS string + WordSize int + type Function struct + End uint64 + Filename string + Name string + Offset uint64 + PackageName string + SrcLineEnd int + SrcLineLength int + SrcLineStart int + func (f *Function) LineStart() int + func (f *Function) String() string + type GoFile struct + FileInfo *FileInfo + func Open(filePath string) (*GoFile, error) + func (f *GoFile) Close() error + func (f *GoFile) GetCompilerVersion() (*GoVersion, error) + func (f *GoFile) GetPackages() ([]*Package, error) + func (f *GoFile) GetSTDLib() ([]*Package, error) + func (f *GoFile) GetTypes() ([]*GoType, error) + func (f *GoFile) GetUnknown() ([]*Package, error) + func (f *GoFile) GetVendors() ([]*Package, error) + func (f *GoFile) PCLNTab() (*gosym.Table, error) + func (f *GoFile) SetGoVersion(version string) error + type GoType struct + Addr uint64 + ChanDir ChanDir + Element *GoType + FieldAnon bool + FieldName string + FieldTag string + Fields []*GoType + FuncArgs []*GoType + FuncReturnVals []*GoType + IsVariadic bool + Key *GoType + Kind reflect.Kind + Length int + Methods []*TypeMethod + Name string + PackagePath string + PtrResolvAddr uint64 + func (t *GoType) String() string + type GoVersion struct + Name string + SHA string + Timestamp string + func ResolveGoVersion(tag string) *GoVersion + type Method struct + Receiver string + func (m *Method) String() string + type Package struct + Filepath string + Functions []*Function + Methods []*Method + Name string + func (p *Package) GetSourceFiles() []*SourceFile + type PackageClass uint8 + const ClassGenerated + const ClassMain + const ClassSTD + const ClassUnknown + const ClassVendor + type PackageClassifier struct + func NewPackageClassifier(mainPkgFilepath string) *PackageClassifier + func (c *PackageClassifier) Classify(pkg *Package) PackageClass + type SourceFile struct + Name string + Postfix string + Prefix string + func (s *SourceFile) String() string + type TypeMethod struct + FuncCallOffset uint64 + IfaceCallOffset uint64 + Name string + Type *GoType