generator

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseStatusErrMsg

func ParseStatusErrMsg(s string) (string, bool)

Types

type StatusError

type StatusError struct {
	TypeName *types.TypeName
	Errors   []*statuserror.StatusErr
}

func (*StatusError) Name

func (s *StatusError) Name() string

func (*StatusError) WriteMethodCanBeTalkError

func (s *StatusError) WriteMethodCanBeTalkError(file *codegen.File)

func (*StatusError) WriteMethodCode

func (s *StatusError) WriteMethodCode(file *codegen.File)

func (*StatusError) WriteMethodImplements

func (s *StatusError) WriteMethodImplements(file *codegen.File)

func (*StatusError) WriteMethodKey

func (s *StatusError) WriteMethodKey(file *codegen.File)

func (*StatusError) WriteMethodMsg

func (s *StatusError) WriteMethodMsg(file *codegen.File)

func (*StatusError) WriteMethodStatus

func (s *StatusError) WriteMethodStatus(file *codegen.File)

func (*StatusError) WriteMethodStatusErrAndError

func (s *StatusError) WriteMethodStatusErrAndError(file *codegen.File)

func (*StatusError) WriteToFile

func (s *StatusError) WriteToFile(file *codegen.File)

type StatusErrorGenerator

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

func NewStatusErrorGenerator

func NewStatusErrorGenerator(pkg *packagesx.Package) *StatusErrorGenerator

func (*StatusErrorGenerator) Output

func (g *StatusErrorGenerator) Output(cwd string)

func (*StatusErrorGenerator) Scan

func (g *StatusErrorGenerator) Scan(names ...string)

type StatusErrorScanner

type StatusErrorScanner struct {
	StatusErrors map[*types.TypeName][]*statuserror.StatusErr
	// contains filtered or unexported fields
}

func NewStatusErrorScanner

func NewStatusErrorScanner(pkg *packagesx.Package) *StatusErrorScanner

func (*StatusErrorScanner) StatusError

func (scanner *StatusErrorScanner) StatusError(typeName *types.TypeName) []*statuserror.StatusErr

Jump to

Keyboard shortcuts

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