embed

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystem

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

func New

func New(path string, efs embed.FS) (out FileSystem, err error)

func (FileSystem) Exists

func (f FileSystem) Exists(path string) (exists bool)

func (FileSystem) FileCreated

func (f FileSystem) FileCreated(_ string) (created int64, err error)

func (FileSystem) LastModified

func (f FileSystem) LastModified(_ string) (modTime int64, err error)

func (FileSystem) ListAllDirs

func (f FileSystem) ListAllDirs(path string) (paths []string, err error)

func (FileSystem) ListAllFiles

func (f FileSystem) ListAllFiles(path string) (paths []string, err error)

func (FileSystem) ListDirs

func (f FileSystem) ListDirs(path string) (paths []string, err error)

func (FileSystem) ListFiles

func (f FileSystem) ListFiles(path string) (paths []string, err error)

func (FileSystem) MimeType

func (f FileSystem) MimeType(path string) (mime string, err error)

func (FileSystem) Name

func (f FileSystem) Name() (name string)

func (FileSystem) Open

func (f FileSystem) Open(path string) (file fs.File, err error)

func (FileSystem) ReadDir

func (f FileSystem) ReadDir(path string) (paths []fs.DirEntry, err error)

func (FileSystem) ReadFile

func (f FileSystem) ReadFile(path string) (content []byte, err error)

func (FileSystem) Shasum

func (f FileSystem) Shasum(path string) (shasum string, err error)

Jump to

Keyboard shortcuts

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