file_utils

package
v1.38.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExclusiveLockFile

func ExclusiveLockFile(f *os.File) (func() error, error)

ExclusiveLockFile applies an exclusive lock to a file. Returns a function to unlock the file.

func OpenForOverwrite

func OpenForOverwrite(filePath string) (*os.File, error)

OpenForOverwrite opens a file for writing, truncating the file if it already exists.

Types

This section is empty.

Jump to

Keyboard shortcuts

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