Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCSV ¶ added in v0.6.0
func NewCSV() *csv
New - to initialize CSV struct object fileName: by default should be "generated-csv.csv"
func NewExcel ¶ added in v0.6.0
func NewExcel(options *ExcelOptions) *excel
New - to initialize Excel struct object fileName: by default should be "generated.xlsx"
Types ¶
type Banner ¶ added in v0.10.0
type Banner struct { BgProperty // contains filtered or unexported fields }
func (*Banner) AddImageLayer ¶ added in v0.10.0
func (b *Banner) AddImageLayer(img *ImageLayer) Banners
type BgProperty ¶ added in v0.10.0
BgProperty is background property struct
type ConverterOptions ¶
type ExcelOptions ¶ added in v0.6.1
type ExcelOptions struct { Source string File interface{} }
type Excels ¶ added in v0.6.0
type Excels interface { SetFileName(fileName string) Excels GetExcelFile() *excelize.File Error() error SetSheetName(sheetName string) Excels AppendDataRow(data []string) Excels SetHeader(data []string) Excels ScanContentToStruct(sheetName string, destinationStruct interface{}) error GetContents(sheetName string) ([]map[string]string, error) GetMergeCell(sheetName string) ([]excelize.MergeCell, error) Generate() error }
type ImageLayer ¶ added in v0.10.0
ImageLayer is a struct
type Label ¶ added in v0.10.0
type Label struct { Text string FontPath string FontType string Size float64 Color image.Image DPI float64 Spacing float64 XPos int YPos int }
Label is a struct
type PDF ¶
type PDF struct {
// contains filtered or unexported fields
}
func NewPDF ¶
func NewPDF(options ...*ConverterOptions) (*PDF, error)
func (*PDF) SetFileName ¶
func (*PDF) SetFooterHTMLTemplate ¶
func (*PDF) SetTemplate ¶
type QR ¶
type QR struct {
// contains filtered or unexported fields
}
func (*QR) SetFileName ¶
func (*QR) SetLogoImg ¶
Click to show internal directories.
Click to hide internal directories.