merge

package
v0.53.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: GPL-3.0 Imports: 6 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 {
	Base    fs.FS
	Overlay fs.FS
}

FS implements a simple merged fs.FS, that can combine a Base FS with an Overlay FS. The semantics are: - Files from the Overlay FS will override files with the same name in the Base FS - Directories are combined, with priority for the Overlay FS over the Base FS for files with matching names

func (FS) Open

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

Jump to

Keyboard shortcuts

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