eksel

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(rows *excelize.Rows, header map[string]string, dest interface{}) error

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.

Jump to

Keyboard shortcuts

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