atomic

package
v0.7.1-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2019 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteFile

func WriteFile(dest string, reader io.Reader) (size int64, err error)

Writes a file atomically by first writing into a temp file before moving it to its final destination

func WriteJson

func WriteJson(dest string, o interface{}) (size int64, err error)

Writes a JSON file atomically by first writing into a temp file before moving it to its final destination

Types

This section is empty.

Jump to

Keyboard shortcuts

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