// takesBcks returns true if the function signature takes a Backends as parameter.
takesBcks returns true if the function signature takes a Backends as parameter.
// takesBcks returns true if the function signature takes a Backends as parameter .
func takesBcks(sig *types.Signature) bool {
	for _, p := range tupleSlice(sig.Params()) {
		n, ok := p.Type().(*types.Named)
		if !ok {
			continue
		}
		if _, ok := n.Underlying().(*types.Interface); !ok {
			continue
		}
		if strings.HasSuffix(n.String(), "Backends") {
			return true
		}
	}
	return false
}
func takesBcks ( sig * types . Signature ) bool { for _ , p := range tupleSlice ( sig . Params ( ) ) { n , ok := p . Type ( ) . ( * types . Named ) if ! ok { continue } if _ , ok := n . Underlying ( ) . ( * types . Interface ) ; ! ok { continue } if strings . HasSuffix ( n . String ( ) , " " ) { return true } } return false }
takesBcks returns true if the function signature takes a Backends as parameter.
takesBcks returns true if the function signature takes a Backends as parameter .