writerutils

package
v0.19.14 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSafeFileWriter

func NewSafeFileWriter(f *os.File) io.WriteCloser

NewSafeFileWriter return an io.WriteCloser that wraps around an *os.File. It syncs file changes with the disk when an EOF is reached or the file is closed. It is based on the Sync() function from os.File.

Types

This section is empty.

Jump to

Keyboard shortcuts

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