github.com/nextlinux/gosbom@v0.81.1-0.20230627115839-1ff50c281391/gosbom/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  }