overlay

package
v1.27.7 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(workdir paths.FS, files []File) (overlayFile paths.FS, err error)

Write writes the overlay files to the workdir and generates an overlay.json file suitable for passing to 'go build -overlay'. It returns the path to the written overlay.json file (which lives within workdir).

Types

type File

type File struct {
	// Source is where on the filesystem the original file (in the case of a rewrite)
	// or where the generated file should be overlaid into.
	Source paths.FS

	// Contents are the file contents of the overlaid file.
	Contents []byte
}

File describes a file to generate or rewrite.

Jump to

Keyboard shortcuts

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