assets

package module
Version: v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: Apache-2.0 Imports: 5 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 struct {
	// contains filtered or unexported fields
}

func (File) Close

func (f File) Close() error

Close implements the fs.File interface.

func (*File) Read

func (f *File) Read(buf []byte) (int, error)

Read implements the fs.File interface.

func (File) Stat

func (f File) Stat() (fs.FileInfo, error)

Stat implements the fs.File interface.

type FileInfo

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

func (FileInfo) IsDir

func (fi FileInfo) IsDir() bool

IsDir implements the fs.FileInfo interface.

func (FileInfo) ModTime

func (fi FileInfo) ModTime() time.Time

ModTime implements the fs.FileInfo interface.

func (FileInfo) Mode

func (fi FileInfo) Mode() fs.FileMode

Mode implements the fs.FileInfo interface.

func (FileInfo) Name

func (fi FileInfo) Name() string

Name implements the fs.FileInfo interface.

func (FileInfo) Size

func (fi FileInfo) Size() int64

Size implements the fs.FileInfo interface.

func (FileInfo) Sys

func (fi FileInfo) Sys() interface{}

Sys implements the fs.FileInfo interface.

type FileSystem

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

func New

func New(fs embed.FS) FileSystem

func (FileSystem) Open

func (compressed FileSystem) Open(path string) (fs.File, error)

Open implements the fs.FS interface.

Source Files

Jump to

Keyboard shortcuts

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