github.com/kastenhq/syft@v0.0.0-20230821225854-0710af25cdbe/syft/file/location_read_closer.go (about)

     1  package file
     2  
     3  import "io"
     4  
     5  type LocationReadCloser struct {
     6  	Location
     7  	io.ReadCloser
     8  }
     9  
    10  func NewLocationReadCloser(location Location, reader io.ReadCloser) LocationReadCloser {
    11  	return LocationReadCloser{
    12  		Location:   location,
    13  		ReadCloser: reader,
    14  	}
    15  }