Source File
realfs.go
Belonging Package
github.com/traefik/yaegi/interp
package interpimport ()// realFS complies with the fs.FS interface (go 1.16 onwards)// We use this rather than os.DirFS as DirFS has no concept of// what the current working directory is, whereas this simple// passthru to os.Open knows about working dir automagically.type realFS struct{}// Open complies with the fs.FS interface.func ( realFS) ( string) (fs.File, error) {, := os.Open()if != nil {return nil,}return , nil}
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |