mirror of
https://github.com/prymitive/karma
synced 2026-05-07 03:26:52 +00:00
Add file transport reader
This simply returns os.File reader
This commit is contained in:
16
transport/file.go
Normal file
16
transport/file.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package transport
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
||||
log "github.com/Sirupsen/logrus"
|
||||
)
|
||||
|
||||
type fileReader struct {
|
||||
filename string
|
||||
}
|
||||
|
||||
func newFileReader(filname string) (*os.File, error) {
|
||||
log.Infof("Reading file '%s'", filname)
|
||||
return os.Open(filname)
|
||||
}
|
||||
Reference in New Issue
Block a user