Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateStyle ¶
CreateStyle creates styles in an Excel file based on a map of style settings.
Args:
file (*excelize.File): The Excel file object.
styleSettings (map[string]map[string]interface{}): A map containing key-value pairs for
style names and their individual settings.
Returns:
map[string]int: A map linking style names to their corresponding style index in the Excel file.
func WriteExcel ¶
WriteExcel takes a JSON string containing file properties, styles, and content and returns a base64 encoded string of the generated Excel file.
Args:
data (string): JSON data representing the Excel file information.
Returns:
string: Base64 encoded string of the generated Excel file.
Panics:
- panics on errors during JSON unmarshalling or cell conversion.
Types ¶
type ExcelWriter ¶ added in v0.1.7
type StyleWrapper ¶
Click to show internal directories.
Click to hide internal directories.