filesystem

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(p ...string) (bool, error)

func Get

func Get(path string) ([]byte, error)

func ModTime

func ModTime(path string) (time.Time, error)

func NewFileFileSystem

func NewFileFileSystem(root string, listDirectory bool) http.FileSystem

func Put

func Put(path string, data string) error

Types

type JustFileSystem

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

func (JustFileSystem) Open

func (fs JustFileSystem) Open(name string) (http.File, error)

Jump to

Keyboard shortcuts

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