union

package
v0.0.0-...-a305f17 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: MIT Imports: 3 Imported by: 0

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 New

func New(layers ...fs.FS) *FS

New creates a new UnionFS where files are resolved in the order given. The first FS to return a successful Open will be used.

func (*FS) Open

func (u *FS) Open(name string) (fs.File, error)

Open implements the FS interface

func (*FS) ReadFile

func (u *FS) ReadFile(name string) ([]byte, error)

ReadFile implements the fs.ReadFileFS interface

Jump to

Keyboard shortcuts

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