package
1.0.0
Repository: https://github.com/blang/vfs.git
Documentation: pkg.go.dev

# Functions

Create a new MemFS filesystem which entirely resides in memory.
NewBuffer creates a new data volume based on a buffer.
NewMemFile creates a Buffer which byte slice is safe from concurrent access, the file itself is not thread-safe.

# Constants

MinBufferSize is the minimal initial allocated buffer size.
PathSeparator used to separate path segments.

# Variables

ErrIsDirectory is returned if the file under operation is not a regular file but a directory.
ErrReadOnly is returned if the file is read-only and write operations are disabled.
ErrTooLarge is thrown if it was not possible to enough memory.
ErrWriteOnly is returned if the file is write-only and read operations are disabled.

# Structs

Buf is a Buffer working on a slice of bytes.
MemFile represents a file backed by a Buffer which is secured from concurrent access.
MemFS is a in-memory filesystem.

# Interfaces

Buffer is a usable block of data similar to a file.