mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-26 22:04:32 +02:00
Rename interface contentRewriter to contentTransformer
Is is a much better name.
This commit is contained in:
@@ -6,7 +6,7 @@ import (
|
||||
"io"
|
||||
)
|
||||
|
||||
type trans func(rw contentRewriter)
|
||||
type trans func(rw contentTransformer)
|
||||
|
||||
type link trans
|
||||
|
||||
@@ -20,14 +20,14 @@ func NewEmptyTransforms() []link {
|
||||
return make([]link, 0, 20)
|
||||
}
|
||||
|
||||
// contentRewriter is an interface that enables rotation
|
||||
// contentTransformer is an interface that enables rotation
|
||||
// of pooled buffers in the transformer chain.
|
||||
type contentRewriter interface {
|
||||
type contentTransformer interface {
|
||||
Content() []byte
|
||||
io.Writer
|
||||
}
|
||||
|
||||
// Implements contentRewriter
|
||||
// Implements contentTransformer
|
||||
// Content is read from the from-buffer,
|
||||
// and rewritten to to the to-buffer.
|
||||
type fromToBuffer struct {
|
||||
|
Reference in New Issue
Block a user