rp_column_impl

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorInvalidRowDataFormat = errors.New("invalid row data format")
)

Functions

func Headers

func Headers(r interface{}, isHidden func(name string) bool) (headers []string, err error)

func NewJson

func NewJson(header []string) rp_column.Column

func NewModel

func NewModel(model interface{}, opts ...rp_model.ReportOpt) rp_column.Column

func NewStream

func NewStream(model interface{}, opts ...rp_model.ReportOpt) rp_column.Column

func Parse

func Parse(r interface{}) (s gjson.Result, err error)

Types

type JsonArray

type JsonArray struct {
	// contains filtered or unexported fields
}

func (*JsonArray) Header

func (z *JsonArray) Header() []string

func (*JsonArray) ValueStrings

func (z *JsonArray) ValueStrings(r interface{}) (cols []string)

func (*JsonArray) Values

func (z *JsonArray) Values(r interface{}) (cols []interface{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL