Discover Packages
github.com/edgelesssys/marblerun
cli
internal
file
package
Version:
v1.4.1
Opens a new window with list of versions in this module.
Published: Feb 27, 2024
License: MPL-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Handler is a wrapper around afero.Afero,
providing a simple interface for reading and writing files.
New returns a new FileWriter for the given filename.
Returns nil if filename is empty.
func (*Handler) Name ¶
Name returns the filename.
func (*Handler) Read ¶
Read reads the file and returns its contents.
func (*Handler) Write ¶
Write writes the given data to the file.
Option are extra options for the file writer.
const (
OptNone Option = 1 << iota
OptOverwrite
OptMkdirAll
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.