Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteFileAtomic

func WriteFileAtomic(filename string, data []byte, perm os.FileMode) (err error)

    WriteFileAtomic creates a temporary file with data and provided perm and swaps it atomically with filename if successful.

    Types

    This section is empty.

    Source Files