flatstruct

package module
v0.0.0-...-7deb230 Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIsSliceIndex

func CheckIsSliceIndex(header string) bool

CheckIsSliceIndex TODO

func CompNRowsCols

func CompNRowsCols(s interface{}) (nrows, ncols int)

CompNRowsCols computes the number of rows and columns necessary to represent object s in a table. TODO test

func DescendTreeAndEncode

func DescendTreeAndEncode(s interface{}, header string, sliceIndices []int, rowEl string)

DescendTreeAndEncode TODO

func FillAndAppend

func FillAndAppend(headers, newHeaders []string, rows, newRows [][]string) ([]string, [][]string)

FillAndAppend TODO

func Flatten

func Flatten(headerBase string, s interface{}) (headers []string, rows [][]string, err error)

Flatten TODO

func FlattenBegin

func FlattenBegin(headerBase string, s interface{}) (headers []string, rows [][]string, err error)

FlattenBegin TODO TODO Order headers by nesting depth

func FlattenDefault

func FlattenDefault(headerBase string, s interface{}) (headers []string, rows [][]string, err error)

FlattenDefault TODO

func FlattenSlice

func FlattenSlice(headerBase string, s interface{}) (headers []string, rows [][]string, err error)

FlattenSlice TODO

func FlattenStruct

func FlattenStruct(headerBase string, s interface{}) (headers []string, rows [][]string, err error)

FlattenStruct TODO

func Retrieve

func Retrieve(sliceVal reflect.Value, index int) reflect.Value

Retrieve TODO

func Unflatten

func Unflatten(f [][]string, s interface{}) (headerBase string, err error)

Unflatten TODO

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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