atomic

package
v0.0.0-...-ed4b4ac Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

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