vfs

package
v0.0.0-...-e9c076f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader[T any] interface {
	Read([]byte) (n int, err error)
}

type VFS

type VFS[T any] interface {
	Reader[T]
	Writer[T]

	GetFileRef() *os.File
}

func NewVFS

func NewVFS[T any](dir, file string, flag int, perm os.FileMode) VFS[T]

type Writer

type Writer[T any] interface {
	Write([]byte) (n int, err error)
	Flush() error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL