Example #1
0
func (im *InceptionMain) renderTpl(f *os.File, t *template.Template, tc *templateCtx) error {
	err := t.Execute(f, tc)
	if err != nil {
		return err
	}

	return shared.GoFmt(f.Name())
}
Example #2
0
func (this *FileInfo) Print(filepath string) error {
	err := this.print(filepath)
	if err == nil {
		err = shared.GoFmt(filepath)
	}

	return err
}