Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyFile ¶
CopyFile copies the contents from src to dst atomically. If dst does not exist, CopyFile creates it with permissions perm. If the copy fails, CopyFile aborts and dst is preserved.
Modified version of: https://go-review.googlesource.com/c/go/+/1591
func MaybeAddCompression ¶
func MaybeAddCompression(file string, w io.WriteCloser) (io.WriteCloser, error)
func NewFileReader ¶
func NewFileReader(file string) (f io.ReadCloser, err error)
func NewFileWriter ¶
func NewFileWriter(file string) (w io.WriteCloser, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.