mirror of
https://github.com/prymitive/karma
synced 2026-08-23 11:56:20 +00:00
Add file transport reader
This simply returns os.File reader
This commit is contained in:
@@ -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