feat: images
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package images
|
||||
|
||||
import "os"
|
||||
|
||||
type Service struct {
|
||||
fs fileSystem
|
||||
}
|
||||
|
||||
func New(fs fileSystem) *Service {
|
||||
return &Service{
|
||||
fs: fs,
|
||||
}
|
||||
}
|
||||
|
||||
type fileSystem interface {
|
||||
Read(path string) ([]byte, error)
|
||||
Stat(path string) (os.FileInfo, error)
|
||||
}
|
||||
Reference in New Issue
Block a user