mirror of
https://github.com/gohugoio/hugo.git
synced 2025-03-20 07:51:58 +00:00
Format docs
This commit is contained in:
parent
66cf3bdc77
commit
1e8e5d4e7a
1 changed files with 3 additions and 4 deletions
|
@ -20,16 +20,15 @@ func NewEmptyTransforms() []link {
|
||||||
return make([]link, 0, 20)
|
return make([]link, 0, 20)
|
||||||
}
|
}
|
||||||
|
|
||||||
// contentTransformer is an interface that enables rotation
|
// contentTransformer is an interface that enables rotation of pooled buffers
|
||||||
// of pooled buffers in the transformer chain.
|
// in the transformer chain.
|
||||||
type contentTransformer interface {
|
type contentTransformer interface {
|
||||||
Content() []byte
|
Content() []byte
|
||||||
io.Writer
|
io.Writer
|
||||||
}
|
}
|
||||||
|
|
||||||
// Implements contentTransformer
|
// Implements contentTransformer
|
||||||
// Content is read from the from-buffer,
|
// Content is read from the from-buffer and rewritten to to the to-buffer.
|
||||||
// and rewritten to to the to-buffer.
|
|
||||||
type fromToBuffer struct {
|
type fromToBuffer struct {
|
||||||
from *bytes.Buffer
|
from *bytes.Buffer
|
||||||
to *bytes.Buffer
|
to *bytes.Buffer
|
||||||
|
|
Loading…
Reference in a new issue