utils

package
v0.6.6-8-x-v0.9.12-8-x Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendColumn

func AppendColumn(col frames.Column, value interface{}) error

AppendColumn appends a value to a column

func AppendNil

func AppendNil(col frames.Column) error

AppendNil appends an empty value to data

func AppendValue

func AppendValue(data interface{}, value interface{}) (interface{}, error)

AppendValue appends a value to data

func ColAt

func ColAt(col frames.Column, i int) (interface{}, error)

ColAt return value at index i in column as interface{} This is a slightly differnt use case than col.ValueAt, also we don't want to use defer/recover due to performance overhead

func NewColumn

func NewColumn(value interface{}, size int) (interface{}, error)

NewColumn creates a new column from type of value

func NewColumnFromType

func NewColumnFromType(t string, size int) (interface{}, error)

NewColumn creates a new column from type of value

func RemoveColumn

func RemoveColumn(name string, columns []frames.Column) []frames.Column

RemoveColumn removes the first column that matches name from columns If the column is not found, columns is unchanged

Types

This section is empty.

Jump to

Keyboard shortcuts

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