// makeTplBcks returns the backends type references and template imports of the backends.
makeTplBcks returns the backends type references and template imports of the backends.
// makeTplBcks returns the backends type references and template imports of the backends .
func makeTplBcks(pkgCache *PkgCache, bcks []Backends) ([]string, error) {
	var res []string
	for _, b := range bcks {
		if err := addTypeImports(pkgCache, b.Type); err != nil {
			return nil, err
		}
		ref, err := makeTypeRef(pkgCache, b.Type)
		if err != nil {
			return nil, err
		}
		res = append(res, ref)
	}
	return res, nil
}
func makeTplBcks ( pkgCache * PkgCache , bcks [ ] Backends ) ( [ ] string , error ) { var res [ ] string for _ , b := range bcks { if err := addTypeImports ( pkgCache , b . Type ) ; err != nil { return nil , err } ref , err := makeTypeRef ( pkgCache , b . Type ) if err != nil { return nil , err } res = append ( res , ref ) } return res , nil }
makeTplBcks returns the backends type references and template imports of the backends.
makeTplBcks returns the backends type references and template imports of the backends .