framestruct

package
v0.101.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Overview

Package framestruct provides functions to convert from any type to *data.Frame or data.Frames

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToDataFrame

func ToDataFrame(name string, toConvert interface{}) (*data.Frame, error)

ToDataFrame flattens an arbitrary struct or slice of structs into a *data.Frame

func ToDataFrames

func ToDataFrames(name string, toConvert interface{}) (data.Frames, error)

ToDataFrames is a convenience wrapper around ToDataFrame. It will wrap the converted DataFrame in a data.Frames. Additionally, if the passed type satisfies the data.Framer interface, the function will delegate to that for the type conversion. If this function delegates to a data.Framer, it will use the data.Frame name defined by the type rather than passed to this function

Types

This section is empty.

Jump to

Keyboard shortcuts

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