Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Overlay ¶
An Overlay value may be assigned to the Overlay field of a load.Config.
func (Overlay) AddBytes ¶
AddBytes adds a file with the specified []byte content to the Overlay. It calls filepath.Abs on the filename before storing the byte slice into the Overlay, and returns an error if that call fails.
func (Overlay) AddFSPaths ¶
AddFSPaths adds files from parts of fsys, selected by the specified paths, to the Overlay. AddFSPaths walks the parts file system, reading each file into a byte slice, adding it to the Overlay as a load.Source using load.FromBytes. It returns any error occured during the call to fs.Walkdir.
Click to show internal directories.
Click to hide internal directories.