Documentation ¶
Index ¶
- func AttributesIndex(attribute string) (string, int)
- func CSV2Slice(CSVPath string) ([][]string, error)
- func CSVRowsToMap(header []string, values [][]string) []map[string]interface{}
- func CSVToJSON(path string)
- func CheckError(err error)
- func JSONString(rows [][]string) (string, error)
- func MapToString(entries []map[string]interface{}) (string, error)
- func OpenCSV(path string) (CSVFile *os.File)
- func ReadCSV(CSVFile *os.File) (CSVRows [][]string)
- func WriteToJSON(json string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttributesIndex ¶
Finds attribute and index of nested attributes and returns them
func CSVRowsToMap ¶
Creates a map of CSV headers and values
func JSONString ¶
func MapToString ¶
Recives map of entities and returns json formated result
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.