code: func NewTemplateInspectorFromString(out io.Writer, tmplStr string) (Inspector, error) {
  	if tmplStr == "" {
  		return NewIndentedInspector(out), nil
  	}
  
  	tmpl, err := templates.Parse(tmplStr)
  	if err != nil {
  		return nil, errors.Errorf("Template parsing error: %s", err)
  	}
  	return NewTemplateInspector(out, tmpl), nil
  }
docs: // NewTemplateInspectorFromString creates a new TemplateInspector from a string
  // which is compiled into a template.