mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 16:33:21 +01:00
15 lines
149 B
Go
15 lines
149 B
Go
package file
|
|
|
|
import (
|
|
"io"
|
|
"os"
|
|
)
|
|
|
|
type Opener struct {
|
|
path string
|
|
}
|
|
|
|
func (o Opener) Open() (io.ReadCloser, error) {
|
|
return os.Open(o.path)
|
|
}
|