type GoTemplatePrinter … func NewGoTemplatePrinter(tmpl []byte) (*GoTemplatePrinter, error) { … } // AllowMissingKeys tells the template engine if missing keys are allowed. func (p *GoTemplatePrinter) AllowMissingKeys(allow bool) { … } // PrintObj formats the obj with the Go Template. func (p *GoTemplatePrinter) PrintObj(obj runtime.Object, w io.Writer) error { … } // safeExecute tries to execute the template, but catches panics and returns an error // should the template engine panic. func (p *GoTemplatePrinter) safeExecute(w io.Writer, obj interface{ … } func base64decode(v string) (string, error) { … }