Documentation ¶
Overview ¶
memfs implements an in-memory fs.FS implementation This is useful in for running d2 in javascript environments where native file calls are not available
Index ¶
- type MemoryFS
- type MemoryFile
- func (mf *MemoryFile) Close() error
- func (mf *MemoryFile) IsDir() bool
- func (mf *MemoryFile) ModTime() time.Time
- func (mf *MemoryFile) Mode() fs.FileMode
- func (mf *MemoryFile) Name() string
- func (mf *MemoryFile) Read(b []byte) (int, error)
- func (mf *MemoryFile) Size() int64
- func (mf *MemoryFile) Stat() (fs.FileInfo, error)
- func (mf *MemoryFile) Sys() interface{}
- type MemoryFileHandle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryFile ¶
type MemoryFile struct {
// contains filtered or unexported fields
}
func (*MemoryFile) Close ¶
func (mf *MemoryFile) Close() error
func (*MemoryFile) IsDir ¶
func (mf *MemoryFile) IsDir() bool
func (*MemoryFile) ModTime ¶
func (mf *MemoryFile) ModTime() time.Time
func (*MemoryFile) Mode ¶
func (mf *MemoryFile) Mode() fs.FileMode
func (*MemoryFile) Name ¶
func (mf *MemoryFile) Name() string
func (*MemoryFile) Size ¶
func (mf *MemoryFile) Size() int64
func (*MemoryFile) Sys ¶
func (mf *MemoryFile) Sys() interface{}
type MemoryFileHandle ¶
type MemoryFileHandle struct { *MemoryFile // contains filtered or unexported fields }
func (*MemoryFileHandle) Close ¶
func (fh *MemoryFileHandle) Close() error
Click to show internal directories.
Click to hide internal directories.