Help us shape the future of Go! Take the 2026 Go Developer Survey

disk

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: GPL-3.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Disk

type Disk interface {
	Exists(path string) error
	Read(path string) ([]byte, error)
	Write(path string, data []byte) error
	Remove(path string) error
	MkDir(path string) error
	ReadDir(path string) ([]Entry, error)
	IsNotExist(err error) bool
	IsExist(err error) bool
	Open(path string, flag int) (io.WriteCloser, error)
}

func FromPath

func FromPath(path string) (Disk, error)

type Entry

type Entry interface {
	IsDir() bool
	Name() string
}

Jump to

Keyboard shortcuts

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