Documentation ¶
Index ¶
- Variables
- func FieldNumFirstRecord() (n int)
- func FieldNumNoCheck() (n int)
- type Config
- type Configurer
- type Field
- type FieldNumNoCheckImpl
- type FieldNumber
- type FieldNumberFunc
- type FieldPositions
- type Fields
- type FixedFieldNum
- type Header
- type IOCreator
- type InStream
- type Manager
- func (man Manager) MarshalToFile(path string, m Marshaler) (err error)
- func (m Manager) Read(r io.Reader, un Unmarshaler) (err error)
- func (m Manager) ReadFile(path string, user ReaderUser) (err error)
- func (man Manager) UnmarshalFromFile(path string, un Unmarshaler) (err error)
- func (m *Manager) UsePool(p pool.Bufio)
- func (m Manager) UseReader(r io.Reader, user ReaderUser) (err error)
- func (m Manager) UseWriter(w io.Writer, user WriterUser) (err error)
- func (man Manager) Write(w io.Writer, m Marshaler) (err error)
- func (m Manager) WriteFile(path string, user WriterUser) (err error)
- type Marshaler
- type OutStream
- type Reader
- type ReaderUser
- type Unmarshaler
- type Writer
- type WriterUser
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{ FieldNum: FieldNumberFunc(FieldNumFirstRecord), Comma: ',', }
Functions ¶
func FieldNumFirstRecord ¶
func FieldNumFirstRecord() (n int)
func FieldNumNoCheck ¶
func FieldNumNoCheck() (n int)
Types ¶
type Config ¶
type Configurer ¶
type FieldNumNoCheckImpl ¶
type FieldNumNoCheckImpl struct{}
type FieldNumber ¶
type FieldNumber interface {
GetFieldNumber() (n int)
}
type FieldNumberFunc ¶
type FieldNumberFunc func() (n int)
func (FieldNumberFunc) GetFieldNumber ¶
func (f FieldNumberFunc) GetFieldNumber() (n int)
type FieldPositions ¶
type FixedFieldNum ¶
type FixedFieldNum struct {
// contains filtered or unexported fields
}
func (FixedFieldNum) GetFieldNumber ¶
func (f FixedFieldNum) GetFieldNumber() (n int)
type Header ¶
type Header struct { Fields Fields Positions FieldPositions }
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (Manager) MarshalToFile ¶
func (Manager) UnmarshalFromFile ¶
func (man Manager) UnmarshalFromFile(path string, un Unmarshaler) (err error)
type ReaderUser ¶
type Unmarshaler ¶
type WriterUser ¶
Click to show internal directories.
Click to hide internal directories.