Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertNumberToFloat64 ¶
ConvertNumberToFloat64 converts a number value to float64. If the value is not a number, it returns 0, false.
func ParseJavaTimeFormat ¶
ParseJavaTimeFormat converts the time format in java to golang.
Types ¶
type Option ¶
type Option struct { TemplateFile string InputFile string // contains filtered or unexported fields }
Option defines the option for the xlsx processing.
type OptionFn ¶
type OptionFn func(*Option)
OptionFn defines the func to change the option.
func WithInputFile ¶
WithInputFile defines the input excel file for reading.
func WithTemplate ¶
WithTemplate defines the template excel file for writing template.
type T ¶
type T interface {
// contains filtered or unexported methods
}
T just for tag for convenience to declare some tags for the whole structure.
type Xlsx ¶
type Xlsx struct {
// contains filtered or unexported fields
}
Xlsx is the structure for xlsx processing.
func (*Xlsx) Download ¶ added in v1.1.0
func (x *Xlsx) Download(w http.ResponseWriter, filename string) error
Download downloads the excels file in the http response.
func (*Xlsx) SaveToFile ¶
SaveToFile writes the workbook out to a file.
Click to show internal directories.
Click to hide internal directories.