Documentation ¶
Index ¶
- func FormatIndent(p []byte) ([]byte, error)
- func IsValid(json string) bool
- func Iterate(jsonStr *string, indent bool, iterFn IterFn) error
- func JSONDecode(data []byte, to interface{}) error
- func JSONEncode(v interface{}) ([]byte, error)
- func MarshalAndPrintln(x interface{})
- func MarshalBuffer(v interface{}, indent bool) ([]byte, error)
- func MarshalBufferDefault(v interface{}, indent bool) []byte
- func MarshalBufferWithErrFmt(v interface{}, indent bool, errFmt string) []byte
- func MarshalString(v interface{}, indent bool) (string, error)
- func MarshalStringDefault(v interface{}, indent bool) string
- func MarshalStringWithErrFmt(v interface{}, indent bool, errFmt string) string
- func Set(jsonstr string, path []string, val interface{}) (string, error)
- type Cell
- type Column
- type IterFn
- type JifTimestamp
- type JsonValue
- type Row
- type Table
- func (d *Table) AddColumn(afterColumnIndex int, newColumn Column) error
- func (d *Table) AddRow(afterRowIndex int, newRow Row) error
- func (d *Table) GetColumn(columnIndex int) (Column, error)
- func (d *Table) GetColumnsCount() (int, error)
- func (d *Table) GetRow(rowIndex int) (Row, error)
- func (d *Table) GetRowsCount() (int, error)
- func (d *Table) RemoveColumn(columnIndex int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatIndent ¶
func JSONDecode ¶
JSONDecode decodes JSON data into a structure
func JSONEncode ¶
JSONEncode encodes structure data into JSON
func MarshalAndPrintln ¶
func MarshalAndPrintln(x interface{})
func MarshalBuffer ¶
func MarshalBufferDefault ¶
func MarshalBufferWithErrFmt ¶
func MarshalString ¶
func MarshalStringDefault ¶
func MarshalStringWithErrFmt ¶
Types ¶
type JifTimestamp ¶
Json index friendly timestamp. Why choose format time as nanosecond int64, but not human readable string? time.RFC3339Nano is the only format which can format time with nanosecond accuracy, but it has timezone information in it, when you need create unique index for timestamp in json/jsonb database, same epoch timestamps in different timezone may be considered as different string/index.
func (JifTimestamp) MarshalJSON ¶
func (t JifTimestamp) MarshalJSON() ([]byte, error)
type Table ¶
type Table struct {
Rows []Row
}
func NewTableFromExcel ¶
func NewTableFromString ¶
func (*Table) GetColumnsCount ¶
func (*Table) GetRowsCount ¶
func (*Table) RemoveColumn ¶
Click to show internal directories.
Click to hide internal directories.