Documentation ¶
Index ¶
- type CsvRead
- func (c *CsvRead) ReadGBKAll() ([][]string, error)
- func (c *CsvRead) ReadGBKLine(lineDataFunc func(record []string) error) error
- func (c *CsvRead) ReadUTF16All() ([][]string, error)
- func (c *CsvRead) ReadUTF16Line(lineDataFunc func(record []string)) error
- func (c *CsvRead) ReadUTF8All() ([][]string, error)
- func (c *CsvRead) ReadUTF8Line(lineDataFunc func(record []string)) error
- type XlsxRead
- type XlsxWrite
- func (x *XlsxWrite) AppendData(data []interface{}) *XlsxWrite
- func (x *XlsxWrite) AppendRows(data [][]interface{}) *XlsxWrite
- func (x *XlsxWrite) Output(w http.ResponseWriter, filename string) (err error)
- func (x *XlsxWrite) OutputForGin(ctx *gin.Context, filename string) (err error)
- func (x *XlsxWrite) Save2File(filename string) (err error)
- func (x *XlsxWrite) SetSheetName(sheetName string) *XlsxWrite
- func (x *XlsxWrite) SetTitles(titles []string) *XlsxWrite
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CsvRead ¶ added in v1.2.125
func NewCsvReader ¶ added in v1.2.125
comma 默认传 ','
func (*CsvRead) ReadGBKAll ¶ added in v1.2.125
func (*CsvRead) ReadGBKLine ¶ added in v1.2.125
func (*CsvRead) ReadUTF16All ¶ added in v1.2.125
func (*CsvRead) ReadUTF16Line ¶ added in v1.2.125
func (*CsvRead) ReadUTF8All ¶ added in v1.2.125
func (*CsvRead) ReadUTF8Line ¶ added in v1.2.125
type XlsxWrite ¶ added in v1.2.116
type XlsxWrite struct {
// contains filtered or unexported fields
}
扩展需要append to file 功能
func (*XlsxWrite) AppendData ¶ added in v1.2.116
func (*XlsxWrite) AppendRows ¶ added in v1.2.116
func (*XlsxWrite) Output ¶ added in v1.2.116
func (x *XlsxWrite) Output(w http.ResponseWriter, filename string) (err error)
func (*XlsxWrite) OutputForGin ¶ added in v1.2.117
func (*XlsxWrite) SetSheetName ¶ added in v1.2.116
Click to show internal directories.
Click to hide internal directories.