file

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 License: Unlicense Imports: 4 Imported by: 0

Documentation

Overview

Package file provides helper functions for working with files

Deprecated: This package is deprecated and will be removed in v0.10.0. Use functions and methods from other packages of module golibs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SafeWrite deprecated

func SafeWrite(path string, data []byte) error

SafeWrite writes data to a temporary file and then renames it to what's specified in path

Deprecated: Use renameio.WriteFile or maybe.WriteFile from module github.com/google/renameio.

Types

This section is empty.

Jump to

Keyboard shortcuts

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