package
Version:
v0.9.2202
Opens a new window with list of versions in this module.
Published: Apr 21, 2024
License: BSD-3-Clause
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Transform invokes t with the result of reading the named file, with its lock
still held.
If t returns a nil error, Transform then writes the returned contents back to
the file, making a best effort to preserve existing contents on error.
t must not modify the slice passed to it.
Write opens the named file (creating it with the given permissions if needed),
then write-locks it and overwrites it with the given content.
Create is like os.Create, but returns a write-locked file.
Open is like os.Open, but returns a read-locked file.
Close unlocks and closes the underlying file.
Close may be called multiple times; all calls after the first will return a
non-nil error.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.