Documentation ¶
Index ¶
- Variables
- func CopyFile(src, dst string, m os.FileMode) error
- func MkdirAll(filename string) error
- func MkdirAllCopyFile(src, dst string, m os.FileMode) error
- func MkdirAllCopyFileSync(src, dst string, m os.FileMode) error
- func MkdirAllWriteFile(filename string, src []byte, m os.FileMode) error
- func MultiErrors(errs ...error) error
- type AutoBufWriter
- type FnCloser
- type FnReader
- type FnWriter
- type LimitedWriter
- type MultiError
- type PausedWriter
Constants ¶
This section is empty.
Variables ¶
View Source
var MkdirMode os.FileMode = 0770
Functions ¶
func MkdirAllCopyFileSync ¶ added in v1.1.0
func MkdirAllWriteFile ¶ added in v1.1.0
func MultiErrors ¶
Returns an error (MultiError) or nil if the errors added were all nil.
Types ¶
type AutoBufWriter ¶
type AutoBufWriter struct {
// contains filtered or unexported fields
}
Flushes after x time if the buffer doesn't get filled. Safe to use concurrently.
func NewAutoBufWriter ¶
func NewAutoBufWriter(w io.Writer, size int) *AutoBufWriter
type LimitedWriter ¶
type LimitedWriter struct {
// contains filtered or unexported fields
}
func NewLimitedWriter ¶
func NewLimitedWriter(size int) *LimitedWriter
func (*LimitedWriter) Bytes ¶
func (w *LimitedWriter) Bytes() []byte
type MultiError ¶
type MultiError struct {
// contains filtered or unexported fields
}
func (*MultiError) Error ¶
func (me *MultiError) Error() string
func (*MultiError) Result ¶
func (me *MultiError) Result() error
Returns itself, or nil if it has no errors.
type PausedWriter ¶ added in v1.3.3
func NewPausedWriter ¶ added in v1.3.3
func NewPausedWriter(wr io.Writer) *PausedWriter
func (*PausedWriter) Pause ¶ added in v1.3.3
func (pw *PausedWriter) Pause(v bool)
func (*PausedWriter) Unpause ¶ added in v1.3.3
func (pw *PausedWriter) Unpause()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.