Documentation ¶
Index ¶
- func ParseStatusErrMsg(s string) (string, bool)
- type StatusError
- func (s *StatusError) Name() string
- func (s *StatusError) WriteMethodCanBeTalkError(file *codegen.File)
- func (s *StatusError) WriteMethodCode(file *codegen.File)
- func (s *StatusError) WriteMethodImplements(file *codegen.File)
- func (s *StatusError) WriteMethodKey(file *codegen.File)
- func (s *StatusError) WriteMethodMsg(file *codegen.File)
- func (s *StatusError) WriteMethodStatus(file *codegen.File)
- func (s *StatusError) WriteMethodStatusErrAndError(file *codegen.File)
- func (s *StatusError) WriteToFile(file *codegen.File)
- type StatusErrorGenerator
- type StatusErrorScanner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseStatusErrMsg ¶
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
Click to show internal directories.
Click to hide internal directories.