code: func NewPatchTransformer(
  	slice []*resource.Resource, rf *resource.Factory) (transformers.Transformer, error) {
  	if len(slice) == 0 {
  		return transformers.NewNoOpTransformer(), nil
  	}
  	return &patchTransformer{patches: slice, rf: rf}, nil
  }
docs: // NewPatchTransformer constructs a patchTransformer.