Documentation
¶
Index ¶
- func ClearUnicode(text string) string
- func GetSheetList(r io.Reader, opts ...excelize.Options) []string
- func IsEmpty(slice []string) bool
- func NewSheet[T any](file Xlsx, sheet string, data []T)
- func NumberToColName(n int) string
- func ParseByMultipart[T any](file multipart.File, sheetName ...string) ([]T, error)
- func Parser[T any](r io.Reader, opts ...Options) ([]T, error)
- func ParserFunc(r io.Reader, onRecord func([]string) error, opts ...Options) error
- func ParserString[T any](r io.Reader, opts ...Options) ([]T, error)
- func RemoveDoubleQuote(text string) string
- func RequestFile(r *http.Request, name string) (multipart.File, *multipart.FileHeader, error)
- func ResponseWriter(file Xlsx, w http.ResponseWriter, filename string) error
- func SendStream[T Response](c T, file Xlsx, filename string) error
- type Options
- type Response
- type Sheet
- type SheetInterface
- type Xlsx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearUnicode ¶ added in v1.1.3
ClearUnicode clear unicode from text
func GetSheetList ¶ added in v1.1.1
func NumberToColName ¶
NumberToColName converts a column number to an Excel column letter
func ParseByMultipart ¶ added in v1.1.1
func ParserFunc ¶ added in v1.1.3
ParserFunc excel format to array struct
func ParserString ¶ added in v1.1.3
ParserString excel format to array struct
func RemoveDoubleQuote ¶ added in v1.1.3
RemoveDoubleQuote remove double quote (") and clear unicode from text
func RequestFile ¶
func ResponseWriter ¶
func ResponseWriter(file Xlsx, w http.ResponseWriter, filename string) error
Types ¶
type SheetInterface ¶ added in v1.2.4
Click to show internal directories.
Click to hide internal directories.