gencmd

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(
	fsys domain.FileSystem, importer domain.Importer,
	cfgReader domain.CfgReader, cfgPath string,
) error

Main is usecase layer's entrypoint of gen command.

func NewImportSpecs

func NewImportSpecs() domain.ImportSpecs

NewImportSpecs is a constructor of ImportSpecs .

Types

type Idents added in v0.5.5

type Idents struct {
	// contains filtered or unexported fields
}

func (*Idents) Add added in v0.5.5

func (idents *Idents) Add(ident string) string

func (*Idents) AddNoName added in v0.5.5

func (idents *Idents) AddNoName(ident string) string

type ImportSpecs

type ImportSpecs struct {
	// contains filtered or unexported fields
}

ImportSpecs implements domain.ImportSpecs .

func (*ImportSpecs) Add

func (specs *ImportSpecs) Add(spec domain.ImportSpec) (domain.ImportSpec, error)

Add implements domain.ImportSpecs#Add .

func (ImportSpecs) Names

func (specs ImportSpecs) Names() map[string]domain.ImportSpec

Names implements domain.ImportSpecs#Names .

func (ImportSpecs) Paths

func (specs ImportSpecs) Paths() map[string]domain.ImportSpec

Paths implements domain.ImportSpecs#Paths .

type Method

type Method struct {
	Field    *ast.Field
	FuncType *ast.FuncType
	Decl     string
	// contains filtered or unexported fields
}

Method implements domain.Method .

func (Method) Declaration

func (method Method) Declaration() string

Declaration implements domain.Method#Declaration .

func (Method) Definition

func (method Method) Definition() string

Definition implements domain.Method#Definition .

func (Method) Imports

func (method Method) Imports() map[string]domain.ImportSpec

Imports implements domain.Method#Imports .

func (Method) IsEllipsis

func (method Method) IsEllipsis() bool

IsEllipsis implements domain.Method#IsEllipsis .

func (Method) Name

func (method Method) Name() string

Name implements domain.Method#Name .

func (Method) Params

func (method Method) Params() []domain.Var

Params implements domain.Method#Params .

func (Method) ParamsStr

func (method Method) ParamsStr() string

ParamsStr implements domain.Method#ParamsStr .

func (Method) ResultValuesStr

func (method Method) ResultValuesStr() string

ResultValuesStr implements domain.Method#ResultValuesStr .

func (Method) Results

func (method Method) Results() []domain.Var

Results implements domain.Method#Results .

func (Method) SetReturnDefinition added in v0.5.0

func (method Method) SetReturnDefinition() string

SetReturnDefinition implements domain.Method#SetReturnDefinition .

func (Method) SetReturnInternalDefinition added in v0.5.0

func (method Method) SetReturnInternalDefinition() string

SetReturnInternalDefinition implements domain.Method#SetReturnInternalDefinition .

type MockTemplateArg

type MockTemplateArg struct {
	Intf *ast.InterfaceType
	Item domain.Item
	// contains filtered or unexported fields
}

MockTemplateArg implements domain.MockTemplateArg .

func (MockTemplateArg) Imports

func (mock MockTemplateArg) Imports() [][]string

Imports implements domain.MockTemplateArg#Imports .

func (MockTemplateArg) Methods

func (mock MockTemplateArg) Methods() []domain.Method

Methods implements domain.MockTemplateArg#Methods .

func (MockTemplateArg) MockName

func (mock MockTemplateArg) MockName() string

MockName implements domain.MockTemplateArg#MockName .

func (MockTemplateArg) PackageName

func (mock MockTemplateArg) PackageName() string

PackageName implements domain.MockTemplateArg#PackageName .

func (MockTemplateArg) URL

func (mock MockTemplateArg) URL() string

URL implements domain.MockTemplateArg#URL .

func (MockTemplateArg) Version

func (mock MockTemplateArg) Version() string

Version implements domain.MockTemplateArg#Version .

type Var

type Var struct {
	// contains filtered or unexported fields
}

Var implements domain.Var .

func (Var) Host

func (v Var) Host() string

Host implements domain.Var#Host .

func (Var) Name

func (v Var) Name() string

Name implements domain.Var#Name .

func (Var) PkgName

func (v Var) PkgName() string

PkgName implements domain.Var#PkgName .

func (Var) PkgPath

func (v Var) PkgPath() string

PkgPath implements domain.Var#PkgPath .

func (Var) Type

func (v Var) Type() string

Type implements domain.Var#Type .

Jump to

Keyboard shortcuts

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