Open implements fs.NodeOpener and supports opening the README as a read-only file.
(_ context.Context, _ uint32)
| 87 | // Open implements fs.NodeOpener and supports opening the README as a read-only |
| 88 | // file. |
| 89 | func (*readme) Open(_ context.Context, _ uint32) (fs.FileHandle, uint32, syscall.Errno) { |
| 90 | df := nodefs.NewDataFile([]byte(readmeText)) |
| 91 | rf := nodefs.NewReadOnlyFile(df) |
| 92 | return rf, 0, fs.OK |
| 93 | } |
no outgoing calls