Help us shape the future of Go! Take the 2026 Go Developer Survey

staticfs

package
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

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

func NewFS

func NewFS() *FS

func (*FS) Add

func (fs *FS) Add(p string, stat *types.Stat, data []byte)

func (*FS) Open

func (fs *FS) Open(p string) (io.ReadCloser, error)

func (*FS) Walk

func (fs *FS) Walk(ctx context.Context, target string, fn fs.WalkDirFunc) error

type File

type File struct {
	Stat *types.Stat
	Data []byte
}

type MergeFS

type MergeFS struct {
	Lower fsutil.FS
	Upper fsutil.FS
}

func NewMergeFS

func NewMergeFS(lower, upper fsutil.FS) *MergeFS

func (*MergeFS) Open

func (mfs *MergeFS) Open(p string) (io.ReadCloser, error)

func (*MergeFS) Walk

func (mfs *MergeFS) Walk(ctx context.Context, target string, fn fs.WalkDirFunc) error

Jump to

Keyboard shortcuts

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