kubernetes/vendor/k8s.io/gengo/v2/generator/execute.go

// ExecuteTargets runs the generators for the provided targets.
func (c *Context) ExecuteTargets(targets []Target) error {}

type DefaultFileType

func (ft DefaultFileType) AssembleFile(f *File, pathname string) error {}

func assembleGoFile(w io.Writer, f *File) {}

func importsWrapper(src []byte) ([]byte, error) {}

func NewGoFile() *DefaultFileType {}

// format should be one line only, and not end with \n.
func addIndentHeaderComment(b *bytes.Buffer, format string, args ...interface{}

func (c *Context) filteredBy(f func(*Context, *types.Type) bool) *Context {}

// make a new context; inheret c.Namers, but add on 'namers'. In case of a name
// collision, the namer in 'namers' wins.
func (c *Context) addNameSystems(namers namer.NameSystems) *Context {}

// ExecuteTarget runs the generators for a single target.
func (c *Context) ExecuteTarget(tgt Target) error {}

func (c *Context) executeBody(w io.Writer, generator Generator) error {}