fs

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dummy

type Dummy struct{}

func NewDummyFileSystem

func NewDummyFileSystem() *Dummy

func (*Dummy) Get

func (dfs *Dummy) Get(path string) ([]byte, error)

type FileSystem

type FileSystem interface {
	Get(path string) ([]byte, error)
}

type Local

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

func NewLocalFileSystem

func NewLocalFileSystem(root string) *Local

func (*Local) Get

func (lfs *Local) Get(path string) ([]byte, error)

Jump to

Keyboard shortcuts

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