implementortemplate

package
v0.0.0-...-d37067d Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImplementorMethodTemplate

type ImplementorMethodTemplate struct {
	PackageName             string
	ImplementorName         string
	ImplementorVariableName string
	Method                  methodtemplate.MethodTemplate
	// contains filtered or unexported fields
}

func NewImplementorMethodTemplates

func NewImplementorMethodTemplates(pkgName, implName string, method methodtemplate.MethodTemplate, path string) *ImplementorMethodTemplate

func (*ImplementorMethodTemplate) GenerateFile

func (t *ImplementorMethodTemplate) GenerateFile(fileMgr *filemanager.FileManager)

type Template

type Template struct {
	PackageName        string
	InterfaceName      string
	ImplementorName    string
	NewFuncName        string
	Imports            []string
	Attributes         []string
	NewFuncParameters  string
	VariableParameters []string
	Methods            []models.Method
	// contains filtered or unexported fields
}

func NewTemplate

func NewTemplate(pkgName, interfaceName string, impl models.Implementor, path string) *Template

func (*Template) GenerateFile

func (t *Template) GenerateFile(fileMgr *filemanager.FileManager)

func (*Template) SetNewFuncName

func (t *Template) SetNewFuncName(name string)

Jump to

Keyboard shortcuts

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