Documentation ¶
Index ¶
- Constants
- Variables
- func Close(closers ...io.Closer) error
- func CloseOr(handleErr func(err error), closers ...io.Closer)
- func CloseOrPanic(closers ...io.Closer)
- func CloseQuietly(closers ...io.Closer)
- func Copy(dst io.Writer, src io.Reader) (written int64, err error)
- func CopyBuffer(dst io.Writer, src io.Reader, buf []byte) (written int64, err error)
- func CopyN(dst io.Writer, src io.Reader, n int64) (written int64, err error)
- func DirsEqual(path1, path2 string) (equal bool, err error)
- func Exists(path string) (bool, error)
- func FilesEqual(path1, path2 string) (equal bool, err error)
- func IsDir(path string) (bool, error)
- func IsEmpty(path string) (bool, error)
- func IsFile(path string) (bool, error)
- func IsParentDir(path string) (bool, error)
- func Junction(directory, junction string) error
- func LimitReader(r io.Reader, n int64) io.Reader
- func Parent(path string) (string, error)
- func ReadAtLeast(r io.Reader, buf []byte, min int) (n int, err error)
- func ReadFull(r io.Reader, buf []byte) (n int, err error)
- func WriteString(w io.Writer, s string) (n int, err error)
- type Diff
- type FileInfo
Constants ¶
View Source
const ( BufferSize = bufferSize SeekStart = io.SeekStart SeekCurrent = io.SeekCurrent SeekEnd = io.SeekEnd )
Variables ¶
View Source
var ( ErrShortWrite = io.ErrShortWrite ErrShortBuffer = io.ErrShortBuffer EOF = io.EOF ErrUnexpectedEOF = io.ErrUnexpectedEOF ErrNoProgress = io.ErrNoProgress )
Functions ¶
func CloseOrPanic ¶
func CloseQuietly ¶
func CopyBuffer ¶ added in v0.1.3
func FilesEqual ¶
func IsEmpty ¶ added in v0.4.2
Returns true iff the path entry exists and is one of: 1. A directory with no children. 2. A regular file of zero length.
func IsParentDir ¶
Returns true iff the parent of this path exists and is a directory.
func ReadAtLeast ¶ added in v0.1.3
Types ¶
Click to show internal directories.
Click to hide internal directories.