Documentation ¶
Index ¶
- func MarshalBytes(v any, keepHeader bool) ([]byte, error)
- func MarshalString(v any, keepHeader bool) (string, error)
- func ReadHeaders(in []byte) ([]string, error)
- func ReplaceHeaders(in []byte, newHeaders []string) ([]byte, error)
- func UnmarshalBytes(in []byte, outArrPtr any) error
- type Table
- func (t *Table) Height() int
- func (t *Table) Len() int
- func (t *Table) Less(i, j int) bool
- func (t *Table) ReadAll(types map[string]any) ([]map[string]any, error)
- func (t *Table) ReadRowWithTypes(rowIdx int, types map[string]any) (map[string]any, error)
- func (t *Table) SetSortIdIdx(idx int) error
- func (t *Table) Swap(i, j int)
- func (t *Table) Verify() error
- func (t *Table) Width() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalBytes ¶
MarshalBytes encode `v` into bytes. Note: \r(carriage return) before \n(newline characters) are silently removed, for example: string "hello\r\nworld" after csv encodiing will be "hello\nworld".
func ReadHeaders ¶
func UnmarshalBytes ¶
UnmarshalBytes decode `in` bytes into array pointer `out`.
Types ¶
Click to show internal directories.
Click to hide internal directories.