type setFn … type seqFilter … func (sf seqFilter) Filter(node *yaml.RNode) (*yaml.RNode, error) { … } // applyFilterToSeq will apply the filter to each element in the sequence node func applyFilterToSeq(filter yaml.Filter, node *yaml.RNode) error { … }