storage

package
v1.0.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File = fs.File

type FileMode

type FileMode = fs.FileMode

type FileSystem

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

FileSystem represents a disk file system

func New

func New(dir string) *FileSystem

NewStorage creates a new storage

func (*FileSystem) Open

func (storage *FileSystem) Open(name string) (File, error)

Open opens the named file for reading

func (*FileSystem) OpenFile

func (storage *FileSystem) OpenFile(name string, flag int, perm FileMode) (File, error)

OpenFile is the generalized open call

Jump to

Keyboard shortcuts

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