atomio

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseAndReplaceFile

func CloseAndReplaceFile(file *os.File, newPath string) error

CloseAndReplaceFile closes file and moves it atomically to newPath.

func OpenTempFile

func OpenTempFile(name string, flag int, perm os.FileMode) (*os.File, error)

OpenTempFile opens a file named xxx as xxx.randomsuffix with the given flags and file mode.

Types

This section is empty.

Jump to

Keyboard shortcuts

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