method

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Method

type Method struct {
	StructName string `json:"structName"`
	FieldName  string `json:"fieldName"`
	FieldType  string `json:"fieldType"`
	// contains filtered or unexported fields
}

Method methods info.

func New

func New(structName string, fieldName string, fieldType string) *Method

New new method info.

func (*Method) Getter

func (m *Method) Getter() enki.Block

Getter get block for method.

func (*Method) GetterDefinition

func (m *Method) GetterDefinition() enki.Function

GetterDefinition get method definition for interface.

func (*Method) GetterName

func (m *Method) GetterName() string

GetterName name of the get method.

func (*Method) Setter

func (m *Method) Setter() enki.Block

Setter set method block.

func (*Method) SetterDefinition

func (m *Method) SetterDefinition() enki.Function

SetterDefinition set method definition for interface.

func (*Method) SetterName

func (m *Method) SetterName() string

SetterName name of the set method.

Jump to

Keyboard shortcuts

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