Documentation ¶
Overview ¶
Package extract generates wrappers of package exported symbols.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenContent ¶
func GenContent( destPath, destPkg, importPath string, p *types.Package, setFuncs map[string]bool, needsPublicType map[string]PublicType, imports *ImportTracker, ) ([]byte, error)
Types ¶
type FieldAccessor ¶
type ImportTracker ¶
type ImportTracker struct {
// contains filtered or unexported fields
}
func NewImportTracker ¶
func NewImportTracker(name, path string) *ImportTracker
func (*ImportTracker) GetAlias ¶
func (it *ImportTracker) GetAlias(name, path string) (retS string)
func (*ImportTracker) NoImport ¶
func (it *ImportTracker) NoImport(name, path string)
type Method ¶
type Method struct {
Name, Param, Result, Arg, Ret string
}
Method stores information for generating interface wrapper method.
type PublicType ¶
Click to show internal directories.
Click to hide internal directories.