github.com/sandwich-go/boost@v1.3.29/xcompress/dummy.go (about)

     1  package xcompress
     2  
     3  type dummyCompressor struct{}
     4  
     5  func newDummyCompressor() (Compressor, error) {
     6  	return &dummyCompressor{}, nil
     7  }
     8  
     9  func (*dummyCompressor) Flat(data []byte) ([]byte, error)    { return data, nil }
    10  func (*dummyCompressor) Inflate(data []byte) ([]byte, error) { return data, nil }