Documentation ¶ Index ¶ func File(path string, data []byte) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func File ¶ func File(path string, data []byte) error File atomically writes data to the named file. It writes to a temporary file in the same directory and renames it so that an interrupted write never leaves a partially-written target. Types ¶ This section is empty. Source Files ¶ View all Source files atomicwrite.go Click to show internal directories. Click to hide internal directories.