Discover Packages
github.com/havoc-os/android_prebuilts_go_linux-x86
src
cmd
go
internal
renameio
package
Version:
v0.0.0-...-0e86c1f
Opens a new window with list of versions in this module.
Published: Jun 18, 2019
License: BSD-3-Clause
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package renameio writes files atomically by renaming temporary files.
Pattern returns a glob pattern that matches the unrenamed temporary files
created when writing to filename.
WriteFile is like ioutil.WriteFile, but first writes data to an arbitrary
file in the same directory as filename, then renames it atomically to the
final name.
That ensures that the final location, if it exists, is always a complete file.
WriteToFile is a variant of WriteFile that accepts the data as an io.Reader
instead of a slice.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.