Documentation ¶
Overview ¶
Package sdcsv CSV扩展
Index ¶
- type HandlerResult
- type Options
- type Reader
- func (r *Reader) Fields() []string
- func (r *Reader) ForeachMap(h func(recNo int, rec map[string]string) HandlerResult) error
- func (r *Reader) ForeachRecord(h func(recNo int, rec []string) HandlerResult) error
- func (r *Reader) ReadMap() (map[string]string, error)
- func (r *Reader) ReadMaps() ([]map[string]string, error)
- func (r *Reader) ReadRecord() ([]string, error)
- func (r *Reader) ReadRecords() ([][]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerResult ¶
type HandlerResult int
const ( Stop HandlerResult = 0 Continue HandlerResult = 1 )
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func (*Reader) ForeachMap ¶
func (*Reader) ForeachRecord ¶
func (r *Reader) ForeachRecord(h func(recNo int, rec []string) HandlerResult) error
func (*Reader) ReadRecord ¶
func (*Reader) ReadRecords ¶
Click to show internal directories.
Click to hide internal directories.