Documentation ¶
Index ¶
- Variables
- func CopyFile(src, dst string, m os.FileMode) 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
Constants ¶
This section is empty.
Variables ¶
View Source
var MkdirMode os.FileMode = 0770
Functions ¶
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.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.