Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArgComposite ¶
type ArgComposite struct {
// contains filtered or unexported fields
}
func NewComposite ¶
func NewComposite(compositeLit *ast.CompositeLit) (composit ArgComposite)
func (ArgComposite) String ¶
func (a ArgComposite) String() string
func (ArgComposite) Type ¶
func (a ArgComposite) Type() string
func (ArgComposite) Value ¶
func (a ArgComposite) Value() string
type CompositeKeyValue ¶
type CompositeKeyValue struct {
// contains filtered or unexported fields
}
type Field ¶
type Field struct { Name string Type string Tags []Tag Comment string Package *ImportPackage Struct *Struct IsLocalType bool }
func (*Field) IsNestedStructType ¶
func (*Field) IsNotPrimitiveType ¶
func (*Field) IsPrimitiveType ¶
type FunctionCall ¶
type FunctionCall struct { Package *ImportPackage Name string Args []Arg }
func NewFunctionCall ¶
func NewFunctionCall(exprStmt *ast.ExprStmt, imports Imports) (fc *FunctionCall)
func (*FunctionCall) ArgString ¶
func (fc *FunctionCall) ArgString() string
func (*FunctionCall) String ¶
func (fc *FunctionCall) String() string
type GoFile ¶
type GoFile struct { PackageName string Structs []*Struct Init struct { FuncCalls []*FunctionCall } }
func ParseGoFile ¶
type ImportPackage ¶
func NewImportPackage ¶
func NewImportPackage(importSpec *ast.ImportSpec) (im *ImportPackage)
func (*ImportPackage) String ¶
func (p *ImportPackage) String() string
type Imports ¶
type Imports []*ImportPackage
func NewImports ¶
func NewImports(astImports []*ast.ImportSpec) Imports
func (Imports) GetByAlias ¶
func (imps Imports) GetByAlias(alias string) (imp *ImportPackage)
type Struct ¶
type Struct struct { Name string Fields []*Field Ast *ast.StructType }
func NewStruct ¶
func NewStruct(name string, astStruct *ast.StructType, imports Imports) (st *Struct)
func (*Struct) Dependencies ¶
func (*Struct) NotEmbeddingFields ¶
func (*Struct) UnWarpedFields ¶
Click to show internal directories.
Click to hide internal directories.