Documentation ¶
Index ¶
- func DataRows(data []map[string]interface{}, columns map[string][]string, ...) (rows map[string]map[string]interface{})
- func DataToRows(data []map[string]interface{}, columns map[string][]string, ...) (rows map[string]map[string]interface{})
- func K(c string, v interface{}) string
- func Key(item map[string]interface{}, cols []string) string
- func Skeleton(columnsAndPossible map[string][]string, intervals map[string][]string) (skel map[string]map[string]interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataRows ¶
func DataRows(data []map[string]interface{}, columns map[string][]string, intervals map[string][]string, values map[string]string) (rows map[string]map[string]interface{})
DataRows converts the raw data into row structure (via DataToRows) then removes items with empty data, to reduce the size of data sets for display etc
func DataToRows ¶
func DataToRows(data []map[string]interface{}, columns map[string][]string, intervals map[string][]string, values map[string]string) (rows map[string]map[string]interface{})
DataToRow converts the api data and using the columns and intervals generates a skeleton struct of all possible records and then fills in the interval values where data is found This resulting map can be iterated over as if each item is a row in the table
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.