generator

package
Version: v0.0.0-...-590a33f Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2018 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
	SamePackage bool
	// 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