Versions in this module Expand all Collapse all v0 v0.1.0 Sep 28, 2021 Changes in this version + func CountFields(fields []*models.Field) int + func DefineFieldsByFrom(from *From, toType *models.Type, fromType *models.Type) ([]*models.Field, []*models.Field) + func LoadYML(filepath string) (*models.Generator, error) + func PrintFieldGraph(fields []*models.Field, tabs string) + func PrintFieldRelation(toFields []*models.Field, fromFields []*models.Field) + func PrintFieldTree(typename string, fields []*models.Field, tabs string) + func PrintFunctionFields(function models.Function) + type AST struct + Depth int + MaxDepth int + func (a *AST) Automatch(toType *models.Type, fromType *models.Type) ([]*models.Field, []*models.Field, error) + func (a *AST) Search(imprt string, pkg string, typename string) ([]*models.Field, error) + type Field struct + Convert string + Deepcopy string + Options map[string]interface{} + To string + type From struct + Deepcopy string + Depth int + Fields map[string]Field + Import string + Options map[string]interface{} + Package string + Pointer bool + type Function struct + From map[string]From + Options map[string]interface{} + To map[string]To + type Parser struct + AST AST + Generator models.Generator + YML YML + func (p *Parser) ParseYML() (*models.Generator, error) + type To struct + Deepcopy string + Depth int + Import string + Options map[string]interface{} + Package string + Pointer bool + type YML struct + Functions map[string]Function + Generated map[string]interface{} + Import []string