summaryrefslogtreecommitdiffhomepage
path: root/transform
diff options
context:
space:
mode:
authorbep <[email protected]>2015-03-19 02:09:42 +0100
committerbep <[email protected]>2015-03-19 02:09:42 +0100
commit1e8e5d4e7a5ca3e1b43e2782c5fee52986042f81 (patch)
tree54897131a41708d2814c490b2860a7d28c6543c1 /transform
parent66cf3bdc77d43f92333cd48a351d59d7a5abe1f8 (diff)
downloadhugo-1e8e5d4e7a5ca3e1b43e2782c5fee52986042f81.tar.gz
hugo-1e8e5d4e7a5ca3e1b43e2782c5fee52986042f81.zip
Format docs
Diffstat (limited to 'transform')
-rw-r--r--transform/chain.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/transform/chain.go b/transform/chain.go
index 6c41c4199..ab26a350e 100644
--- a/transform/chain.go
+++ b/transform/chain.go
@@ -20,16 +20,15 @@ func NewEmptyTransforms() []link {
return make([]link, 0, 20)
}
-// contentTransformer is an interface that enables rotation
-// of pooled buffers in the transformer chain.
+// contentTransformer is an interface that enables rotation of pooled buffers
+// in the transformer chain.
type contentTransformer interface {
Content() []byte
io.Writer
}
// Implements contentTransformer
-// Content is read from the from-buffer,
-// and rewritten to to the to-buffer.
+// Content is read from the from-buffer and rewritten to to the to-buffer.
type fromToBuffer struct {
from *bytes.Buffer
to *bytes.Buffer