generator

package
Version: v4.0.0-...-b8c427d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2017 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeGenerator

type CodeGenerator struct {
	Model       model.InterfaceToFake
	StructName  string
	PackageName string
	// contains filtered or unexported fields
}

func (CodeGenerator) GenerateFake

func (gen CodeGenerator) GenerateFake() (string, error)

type InterfaceGenerator

type InterfaceGenerator struct {
	Model                  *model.PackageToInterfacify
	Package                string
	DestinationInterface   string
	DestinationPackageName string
}

func (InterfaceGenerator) GenerateInterface

func (ig InterfaceGenerator) GenerateInterface() (string, error)

type ShimGenerator

type ShimGenerator struct {
	Model         model.InterfaceToFake
	StructName    string
	PackageName   string
	SourcePackage string
	// contains filtered or unexported fields
}

func (ShimGenerator) GenerateReal

func (gen ShimGenerator) GenerateReal() (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL