Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAndWrite ¶
CreateAndWrite creates a file called "name" (or overwrites if it already existed), reads all of r into the file, then closes the file. Returns any errors encountered along the way.
func OpenAndStat ¶
openandStatFile calls os.Opena and os.Stat on path, returning the result of both calls if both were successful.
If either returned a non-nil error, returns errOpenFile or errStatFile (respectively) and nil for both the File and the FileInfo
Types ¶
type ErrOpenFile ¶
type ErrOpenFile struct {
// contains filtered or unexported fields
}
func (ErrOpenFile) Error ¶
func (e ErrOpenFile) Error() string
type ErrStatFile ¶
type ErrStatFile struct {
// contains filtered or unexported fields
}
func (ErrStatFile) Error ¶
func (e ErrStatFile) Error() string
type TmpDirCreator ¶
func DefaultTmpDirCreator ¶
func DefaultTmpDirCreator() TmpDirCreator
func LocalTmpDirCreator ¶
func LocalTmpDirCreator() TmpDirCreator
Click to show internal directories.
Click to hide internal directories.