sandbox

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(r Root, data any, path string) error

func AppendString

func AppendString(r Root, data string, path string) error

func Close

func Close(r Root) error

func Delete

func Delete(r Root, path string) error

func DeleteAll

func DeleteAll(r Root, path string) error

func Exists

func Exists(r Root, path string) bool

func FS

func FS(r Root) fs.FS

func IsDir

func IsDir(r Root, path string) bool

func IsFile

func IsFile(r Root, path string) bool

func List

func List(r Root, path string) ([]string, error)

func MkDir

func MkDir(r Root, path string) error

func MkDirAll

func MkDirAll(r Root, path string) error

func Path

func Path(r Root) string

func Read

func Read(r Root, path string) ([]byte, error)

func ReadString

func ReadString(r Root, path string) (string, error)

func Rename

func Rename(r Root, oldpath string, newpath string) error

func Stat

func Stat(r Root, path string) (os.FileInfo, error)

func Write

func Write(r Root, data any, path string) error

func WriteString

func WriteString(r Root, data string, path string) error

Types

type Root

type Root struct {
	// contains filtered or unexported fields
}

func New

func New(path string) (Root, error)

Jump to

Keyboard shortcuts

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