Documentation ¶
Index ¶
- func DeepCopy(src interface{}) (dst interface{}, err error)
- func InIntSlice(haystack []int, needle int) int
- func InStringSlice(haystack []string, needle string) int
- func SameFieldName(fieldName, fieldName2 string) (result bool)
- type ExcelStrcut
- func (excel *ExcelStrcut) ChangeTime(source string) time.Time
- func (excel *ExcelStrcut) CreateMaps() []map[string]string
- func (excel *ExcelStrcut) ReadExcel(file string, sheetName string) *ExcelStrcut
- func (excel *ExcelStrcut) SaveDb(DB *gorm.DB, info map[string]string, temp interface{}, uniqField string) *ExcelStrcut
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InIntSlice ¶
func InStringSlice ¶
func SameFieldName ¶
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
Click to show internal directories.
Click to hide internal directories.