FilesystemContentReader returns a ContentReader that reads from the filesystem.
()
| 8 | |
| 9 | // FilesystemContentReader returns a ContentReader that reads from the filesystem. |
| 10 | func FilesystemContentReader() ContentReader { |
| 11 | return func(absPath string) ([]byte, error) { |
| 12 | return os.ReadFile(absPath) |
| 13 | } |
| 14 | } |
no outgoing calls