dataconverter

package
v0.0.0-...-5f85aab Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyParam       = fmt.Errorf("Tried to extract CSV headers and rows from Empty Parameter")
	ErrIncompatibleType = fmt.Errorf("Value is of incompatible type, supported types are int,float64,bool,int64,Stringer, and GoStringer")
	ErrNilArgument      = fmt.Errorf("Could not convert struct to params, structValue is nil")
	ErrNotStruct        = fmt.Errorf("Could not convert struct to params, structValue is not struct")
)

Functions

This section is empty.

Types

type Params

type Params map[string]interface{}

func FromGFStructToParam

func FromGFStructToParam(lowerCaseFields map[string]struct{}, structValue interface{}) (Params, error)

func (Params) ToCSV

func (p Params) ToCSV() ([]string, []string, error)

func (Params) ToJsonString

func (p Params) ToJsonString() (string, error)

Jump to

Keyboard shortcuts

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