Categorygithub.com/go-msvc/data
modulepackage
1.0.2
Repository: https://github.com/go-msvc/data.git
Documentation: pkg.go.dev

# README

Data

Library functions to manipulate data.

CSV

Convert any type to CSV with:

values,err := data.CSV(myValue)
csvBuffer,err := bytes.NewBuffer(nil)
csv.NewWriter(csvBuffer).Write(values)
fmt.Printf("CSV: %s", string(csvBuffer.Bytes()))

# Functions

No description provided by the author
Get() and all its variants split names on [] for slices and .
GetInto() does Get() and then makes a copy of tmplValue and JSON parse the value over that (i.e.
GetOr() does GetInto() and on any error, returns the defaultValue it is useful if you want to use the value regardless of wrong values in data.
No description provided by the author

# Interfaces

No description provided by the author