excelstruct

package
v0.2.35 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepCopy

func DeepCopy(src interface{}) (dst interface{}, err error)

func InIntSlice

func InIntSlice(haystack []int, needle int) int

func InStringSlice

func InStringSlice(haystack []string, needle string) int

func SameFieldName

func SameFieldName(fieldName, fieldName2 string) (result bool)

Types

type ExcelStrcut

type ExcelStrcut struct {
	Model interface{}
	Info  []map[string]string
	// contains filtered or unexported fields
}

func (*ExcelStrcut) ChangeTime

func (excel *ExcelStrcut) ChangeTime(source string) time.Time

func (*ExcelStrcut) CreateMaps

func (excel *ExcelStrcut) CreateMaps() []map[string]string

func (*ExcelStrcut) ReadExcel

func (excel *ExcelStrcut) ReadExcel(file string, sheetName string) *ExcelStrcut

func (*ExcelStrcut) SaveDb

func (excel *ExcelStrcut) SaveDb(DB *gorm.DB, info map[string]string, temp interface{}, uniqField string) *ExcelStrcut

Jump to

Keyboard shortcuts

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