package utils

import "io"

// ClosingReadSeeker implement Closer interface for ReadSeeker
type ClosingReadSeeker struct {
	io.ReadSeeker
}

// Close implement Closer interface for Buffer
func (ClosingReadSeeker) Close() error {
	return nil
}

package utils

import (
	"bytes"
)

// ClosingBuffer implement Closer interface for Buffer
type ClosingBuffer struct {
	*bytes.Buffer
}

// Close implement Closer interface for Buffer
func (ClosingBuffer) Close() error {
	return nil
}

--- 
+++ 
@@ -1,15 +1,13 @@
 package utils
 
-import (
-	"bytes"
-)
+import "io"
 
-// ClosingBuffer implement Closer interface for Buffer
-type ClosingBuffer struct {
-	*bytes.Buffer
+// ClosingReadSeeker implement Closer interface for ReadSeeker
+type ClosingReadSeeker struct {
+	io.ReadSeeker
 }
 
 // Close implement Closer interface for Buffer
-func (ClosingBuffer) Close() error {
+func (ClosingReadSeeker) Close() error {
 	return nil
 }
Apply Close method for ReadSeeker
