src

Go monorepo.
git clone git://code.dwrz.net/src
Log | Files | Refs

reader.go (256B)


      1 package io
      2 
      3 import (
      4 	"io"
      5 )
      6 
      7 // ReadSeekNopCloser wraps an io.ReadSeeker with an additional Close method
      8 // that does nothing.
      9 type ReadSeekNopCloser struct {
     10 	io.ReadSeeker
     11 }
     12 
     13 // Close does nothing.
     14 func (ReadSeekNopCloser) Close() error {
     15 	return nil
     16 }