Debian Codegraph @

interp/realfs.go

raw symbols SCIP
1 package interpscip-go gomod github.com/traefik/yaegi . `github.com/traefik/yaegi/interp`/
2
3 import (
4 "io/fsscip-go gomod github.com/golang/go/src go1.21 `io/fs`/"
5 "osscip-go gomod github.com/golang/go/src go1.21 os/"
6 )
7
8 // realFS complies with the fs.FS interface (go 1.16 onwards)
9 // We use this rather than os.DirFS as DirFS has no concept of
10 // what the current working directory is, whereas this simple
11 // passthru to os.Open knows about working dir automagically.
12 type realFSscip-go gomod github.com/traefik/yaegi . `github.com/traefik/yaegi/interp`/realFS# struct{}
13
14 // Open complies with the fs.FS interface.
15 func (dir realFSscip-go gomod github.com/traefik/yaegi . `github.com/traefik/yaegi/interp`/realFS#) Openscip-go gomod github.com/traefik/yaegi . `github.com/traefik/yaegi/interp`/realFS#Open().(name string) (fsscip-go gomod github.com/golang/go/src go1.21 `io/fs`/.Filescip-go gomod github.com/golang/go/src go1.21 `io/fs`/File#, error) {
16 f, err := osscip-go gomod github.com/golang/go/src go1.21 os/.Openscip-go gomod github.com/golang/go/src go1.21 os/Open().(name)
17 if err != nil {
18 return nil, err
19 }
20 return f, nil
21 }