storage

package
v0.0.0-...-255b929 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2025 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 Mem

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

func NewMem

func NewMem() *Mem

func (*Mem) IsDir

func (s *Mem) IsDir(path string) (bool, error)

func (*Mem) MkdirAll

func (s *Mem) MkdirAll(path string) error

func (*Mem) ReadDir

func (s *Mem) ReadDir(path string) ([]string, error)

func (*Mem) ReadFile

func (s *Mem) ReadFile(path string) ([]byte, error)

func (*Mem) WriteFile

func (s *Mem) WriteFile(path string, conent []byte) error

type Os

type Os struct{}

func NewOs

func NewOs() *Os

func (*Os) IsDir

func (s *Os) IsDir(path string) (bool, error)

func (*Os) MkdirAll

func (s *Os) MkdirAll(path string) error

func (*Os) ReadDir

func (s *Os) ReadDir(path string) ([]string, error)

func (*Os) ReadFile

func (s *Os) ReadFile(path string) ([]byte, error)

func (*Os) WriteFile

func (s *Os) WriteFile(path string, conent []byte) error

Jump to

Keyboard shortcuts

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