Documentation
      ¶
    
    
  
    
  
    Index ¶
- func GenerateImplementation(args ImplementationArgs) (string, error)
 - type ImplementationArgs
 - type ImportInfo
 - type Info
 - type Parser
 - func (p *Parser) ExtractGenericConstraints(t types.Type) ([]string, []string, error)
 - func (p *Parser) ExtractParameters(signature *types.Signature) ([]string, []string, error)
 - func (p *Parser) ExtractResults(signature *types.Signature) ([]string, error)
 - func (p *Parser) FindAndParseInterface(packagePath string, interfaceName string) (*Info, error)
 - func (p *Parser) TypeExtracter(ut types.Type, variadic bool) (string, error)
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateImplementation ¶
func GenerateImplementation(args ImplementationArgs) (string, error)
Types ¶
type ImplementationArgs ¶
type ImplementationArgs struct {
	ReceiverName       string
	StructName         string
	ReceiverStructName string
	FunctionName       string
	FunctionParams     string
	FunctionReturns    []string
	FunctionCallArgs   []string
	MockFunctionName   string
}
    func (*ImplementationArgs) FormatReturnValues ¶
func (args *ImplementationArgs) FormatReturnValues() string
type ImportInfo ¶
type Parser ¶
type Parser struct {
	Imports map[string]ImportInfo
	// contains filtered or unexported fields
}
    func (*Parser) ExtractGenericConstraints ¶
func (*Parser) ExtractParameters ¶
func (*Parser) ExtractResults ¶
func (*Parser) FindAndParseInterface ¶
 Click to show internal directories. 
   Click to hide internal directories.