Documentation ¶
Index ¶
Constants ¶
View Source
const ServiceDTOCodeTemplate = `` /* 417-byte string literal not displayed */
View Source
const ServiceImplementCodeTemplate = `` /* 803-byte string literal not displayed */
View Source
const ServiceInterfaceCodeTemplate = `` /* 442-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FormatterServiceDto ¶
type FormatterServiceDto struct {
FormatterStruct
}
func NewFormatterServiceDto ¶
func NewFormatterServiceDto() *FormatterServiceDto
func (*FormatterServiceDto) Format ¶
func (f *FormatterServiceDto) Format(name, version string) IFormatter
type FormatterServiceImplement ¶
type FormatterServiceImplement struct {
FormatterStruct
}
func NewFormatterServiceImplement ¶
func NewFormatterServiceImplement() *FormatterServiceImplement
func (*FormatterServiceImplement) Format ¶
func (f *FormatterServiceImplement) Format(name, version string) IFormatter
type FormatterServiceInterface ¶
type FormatterServiceInterface struct {
FormatterStruct
}
func NewFormatterServiceInterface ¶
func NewFormatterServiceInterface() *FormatterServiceInterface
func (*FormatterServiceInterface) Format ¶
func (f *FormatterServiceInterface) Format(name, version string) IFormatter
type FormatterStruct ¶
type FormatterStruct struct { PackageName string ImportList map[string]ImportItem Name string StructName string Version string FieldList []Field }
格式化信息结构体
type IFormatter ¶
type IFormatter interface { Format(name, version string) IFormatter WriteOut(writer io.Writer) error }
type ImportItem ¶
Click to show internal directories.
Click to hide internal directories.