Documentation ¶ Index ¶ Constants type Argument func NewArgument(v *types.Var, variadic bool) Argument type Fake func Parse(path, name string) (Fake, error) type Import type Interface func NewInterface(n *types.Named) (Interface, error) type Signature func NewSignature(f *types.Func) Signature Constants ¶ View Source const PackagesParseMode = packages.NeedName | packages.NeedTypes | packages.NeedImports Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Argument ¶ type Argument struct { Name string Type types.Type Variadic bool Package string } func NewArgument ¶ func NewArgument(v *types.Var, variadic bool) Argument type Fake ¶ type Fake struct { Imports []Import Interface Interface } func Parse ¶ func Parse(path, name string) (Fake, error) type Import ¶ type Import struct { Name string Path string } type Interface ¶ type Interface struct { Name string Signatures []Signature } func NewInterface ¶ func NewInterface(n *types.Named) (Interface, error) type Signature ¶ type Signature struct { Name string Params []Argument Results []Argument } func NewSignature ¶ func NewSignature(f *types.Func) Signature Source Files ¶ View all Source files argument.go fake.go import.go interface.go parse.go signature.go Click to show internal directories. Click to hide internal directories.