//Do returns Formatted text by template
Do returns Formatted text by template
// Do returns Formatted text by template
func Do(obj interface{}, tmplt string) (*bytes.Buffer, error) {
	t, err := template.New("Formatting").Parse(tmplt)
	if err != nil {
		return nil, errs.Wrap(err, errs.WithContext("tmplt", tmplt))
	}
	buf := &bytes.Buffer{}
	if err := t.Execute(buf, obj); err != nil {
		return buf, errs.Wrap(err, errs.WithContext("tmplt", tmplt))
	}
	return buf, nil
}
func Do ( obj interface { } , tmplt string ) ( * bytes . Buffer , error ) { t , err := template . New ( " " ) . Parse ( tmplt ) if err != nil { return nil , errs . Wrap ( err , errs . WithContext ( " " , tmplt ) ) } buf := & bytes . Buffer { } if err := t . Execute ( buf , obj ) ; err != nil { return buf , errs . Wrap ( err , errs . WithContext ( " " , tmplt ) ) } return buf , nil }
Do returns Formatted text by template
Do returns Formatted text by template