asset

package
v0.0.0-...-55a4dde Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FS = &FileSystem{dir: "./"}

Functions

This section is empty.

Types

type File

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

func Load

func Load(name string) (*File, error)

func (*File) Close

func (f *File) Close() error

func (*File) Discard

func (f *File) Discard(n int64) (discarded int64, err error)

func (*File) Len

func (f *File) Len() int

func (*File) Name

func (f *File) Name() string

func (*File) Peek

func (f *File) Peek(n int) ([]byte, error)

func (*File) Read

func (f *File) Read(b []byte) (n int, err error)

func (*File) ReadAt

func (f *File) ReadAt(b []byte, off int64) (n int, err error)

func (*File) ReadByte

func (f *File) ReadByte() (byte, error)

func (*File) ReadRune

func (f *File) ReadRune() (ch rune, size int, err error)

func (*File) Seek

func (f *File) Seek(offset int64, whence int) (int64, error)

func (*File) Size

func (f *File) Size() int

func (*File) Stat

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

func (*File) Uintptr

func (f *File) Uintptr() uintptr

func (*File) UnreadByte

func (f *File) UnreadByte() error

func (*File) UnreadRune

func (f *File) UnreadRune() error

func (*File) WriteTo

func (f *File) WriteTo(w io.Writer) (n int64, err error)

type FileSystem

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

func DirFS

func DirFS(dir string) *FileSystem

func (*FileSystem) Open

func (f *FileSystem) Open(name string) (fs.File, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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