type caseFolder … // caseFolder implements the Transformer interface for doing case folding. func (t *caseFolder) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { … } func (t *caseFolder) Span(src []byte, atEOF bool) (n int, err error) { … } func makeFold(o options) transform.SpanningTransformer { … }