Debian Codegraph @

fs.go

raw symbols SCIP
1 package render
2
3 import (
4 "io/ioutil"
5 "path/filepath"
6 )
7
8 type FileSystem interface {
9 Walk(root string, walkFn filepath.WalkFunc) error
10 ReadFile(filename string) ([]byte, error)
11 }
12
13 type LocalFileSystem struct{}
14
15 func (LocalFileSystem) Walk(root string, walkFn filepath.WalkFunc) error {
16 return filepath.Walk(root, walkFn)
17 }
18
19 func (LocalFileSystem) ReadFile(filename string) ([]byte, error) {
20 return ioutil.ReadFile(filename)
21 }