Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
Parse transforms rows into desired list of struct. header map[string]string is mapping the header row to dest.
Example:
header := map[string]string{
// the key is the Text in cell of header
// the value is the field tag to dest
"Name": "name"
"Favourite Animal": "fav_animal"
}
type Person struct {
Name string `lookup:"name"`
FavAnimal string `lookup:"fav_animal"`
}
dest := []Person{}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.