Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bundle ¶
type Bundle struct { Encoding models.Encoding TypeName string TypeNameInitial string OriginalKeys map[ast.Node]string // holder -> key Fieldnames map[ast.Node]models.FieldName // populated by transformer // type declarations Cfgcontent any // produced by yaml.Decoder CfgType ast.Expr // config type, needed to be placed in a TypeSpec // function declarations Isolated *ast.GenDecl // organization Named []*ast.GenDecl // mappings, directives Imports []string // package paths Iterators []*ast.FuncDecl // .Range() methods Accessors []*ast.FuncDecl // directives Df *directivefile.DirectiveFile ParentRefAssignStmts []ast.Stmt }
func (*Bundle) AddImports ¶
Click to show internal directories.
Click to hide internal directories.