factory

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EsimFactory added in v0.0.9

type EsimFactory struct {
	// 需要被处理的结构体名称.
	StructName string

	// 首字母大写.
	UpStructName string

	LowerStructName string

	ShortenStructName string

	WithNew bool

	SpecFieldInitStr string
	// contains filtered or unexported fields
}

func NewEsimFactory added in v0.0.5

func NewEsimFactory(options ...Option) *EsimFactory

func (*EsimFactory) Run added in v0.0.9

func (ef *EsimFactory) Run(v *viper.Viper) error

func (*EsimFactory) TypeToInit added in v0.1.3

func (ef *EsimFactory) TypeToInit(ident *dst.Ident) string

type FieldSize added in v0.1.3

type FieldSize struct {
	Size int64

	Field *dst.Field

	Vars *types.Var
}

type FieldSizes added in v0.1.3

type FieldSizes []FieldSize

func (FieldSizes) Len added in v0.1.3

func (fs FieldSizes) Len() int

func (FieldSizes) Less added in v0.1.3

func (fs FieldSizes) Less(i, j int) bool

func (FieldSizes) Swap added in v0.1.3

func (fs FieldSizes) Swap(i, j int)

type Option added in v0.0.7

type Option func(*EsimFactory)

func WithEsimFactoryLogger added in v0.0.7

func WithEsimFactoryLogger(logger log.Logger) Option

func WithEsimFactoryWriter added in v0.0.7

func WithEsimFactoryWriter(writer filedir.IfaceWriter) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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