file

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteOnChange

func WriteOnChange(path string, contents *bytes.Buffer, mode os.FileMode) (bool, error)

WriteOnChange atomically writes path if contents differs from the file contents. The returned bool indicates if the file at path was changed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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