forked from cerc-io/ipld-eth-server
15 lines
204 B
Go
15 lines
204 B
Go
|
package fs
|
||
|
|
||
|
import "io/ioutil"
|
||
|
|
||
|
type Reader interface {
|
||
|
Read(path string) ([]byte, error)
|
||
|
}
|
||
|
|
||
|
type FsReader struct {
|
||
|
}
|
||
|
|
||
|
func (FsReader) Read(path string) ([]byte, error) {
|
||
|
return ioutil.ReadFile(path)
|
||
|
}
|