Documentation
¶
Index ¶
- func Transform(input interface{}, fields []string) ([][]interface{}, error)
- type Excel
- func (e *Excel) DownloadExcel(data interface{}, model interface{}, w http.ResponseWriter) error
- func (e *Excel) Excel2Map(fn io.Reader, model interface{}) ([]map[string]interface{}, error)
- func (e *Excel) Excel2Structs(fn io.Reader, v interface{}) error
- func (e *Excel) Save2Excel(data interface{}, model interface{}, dest string) error
- type ExcelConfig
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Excel ¶
type Excel struct {
// contains filtered or unexported fields
}
func (*Excel) DownloadExcel ¶
func (e *Excel) DownloadExcel(data interface{}, model interface{}, w http.ResponseWriter) error
func (*Excel) Save2Excel ¶
type ExcelConfig ¶
type ExcelConfig struct {
SheetName string
}
Click to show internal directories.
Click to hide internal directories.