Documentation
¶
Index ¶
- func JSON(j *jsonmap.Json, opt ...Option) ([]*jsonmap.Json, error)
- func Map(j *jsonmap.Json, opt ...Option) ([]map[string]interface{}, error)
- func Slice(j *jsonmap.Json, opt ...Option) ([][]interface{}, error)
- func Tabify(j *jsonmap.Json, writer TableWriter, opt ...Option) error
- type KeyExcluderFunc
- type KeyFormatterFunc
- type Option
- type Options
- type TableWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KeyExcluderFunc ¶
KeyExcluderFunc is a function to exclude a key from the input json
type KeyFormatterFunc ¶
KeyFormatterFunc is a function to format a key from the input json
type Option ¶
type Option func(o *Options)
Option is an option setter
func KeyExcluder ¶
func KeyExcluder(v KeyExcluderFunc) Option
KeyExcluder sets the key excluder default : nil
func KeyFormatter ¶
func KeyFormatter(v KeyFormatterFunc) Option
KeyFormatter sets the key formatter default : func (keys []string) => strings.Join(keys, "#")
type Options ¶
type Options struct {
KeyFormatter KeyFormatterFunc
KeyExcluder KeyExcluderFunc
}
Options are our tabify options
type TableWriter ¶
TableWriter is an interface to define a table writer
Click to show internal directories.
Click to hide internal directories.