Files
schreifuchs.ch/internal/components/images/resorce.go
T
2026-02-23 09:50:42 +01:00

19 lines
243 B
Go

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)
}