Documentation ¶ Index ¶ func CopyFile(dst, src string) error type Copier func (c *Copier) CopyFile(dst, src string) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func CopyFile ¶ func CopyFile(dst, src string) error CopyFile is a convenience method that calls CopyFile on a Copier zero value. Types ¶ type Copier ¶ type Copier struct { } A Copier copies files. The operation of Copier's public functions are controled by its public fields. If none are set, the Copier behaves accoriding to the zero value rules of each public field. func (*Copier) CopyFile ¶ func (c *Copier) CopyFile(dst, src string) error CopyFile copies the contents of src to dst atomically. Source Files ¶ View all Source files copy.go Click to show internal directories. Click to hide internal directories.