Documentation
¶
Index ¶
- func NewFile(name string) (_ stdio.Io, err error)
- type File
- func (f *File) Close()
- func (f *File) DefaultDataType(bool)
- func (f *File) File() *os.File
- func (f *File) ForceClose()
- func (f *File) GetDataType() string
- func (f *File) IsTTY() bool
- func (f *File) Open()
- func (f *File) Read([]byte) (int, error)
- func (f *File) ReadAll() ([]byte, error)
- func (f *File) ReadArray(context.Context, func([]byte)) error
- func (f *File) ReadArrayWithType(context.Context, func(interface{}, string)) error
- func (f *File) ReadLine(func([]byte)) error
- func (f *File) ReadMap(*config.Config, func(*stdio.Map)) error
- func (f *File) SetDataType(string)
- func (f *File) Stats() (bytesWritten, bytesRead uint64)
- func (f *File) Write(b []byte) (int, error)
- func (f *File) WriteArray(dataType string) (stdio.ArrayWriter, error)
- func (f *File) WriteTo(io.Writer) (int64, error)
- func (f *File) Writeln(b []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
File Io interface
func (*File) DefaultDataType ¶
DefaultDataType is an empty method because file devices are write only
func (*File) ForceClose ¶
func (f *File) ForceClose()
ForceClose forces the stream.Io interface to close.
func (*File) GetDataType ¶
GetDataType is an empty method because file devices are write only
func (*File) ReadArrayWithType ¶
ReadArrayWithType is an empty method because file devices are write only
func (*File) SetDataType ¶
SetDataType is an empty method because file devices are write only
func (*File) Stats ¶
Stats returns bytes written and read. As File is a write-only interface bytes read will always equal 0
func (*File) WriteArray ¶
func (f *File) WriteArray(dataType string) (stdio.ArrayWriter, error)
WriteArray performs data type specific buffered writes to an stdio.Io interface
Click to show internal directories.
Click to hide internal directories.