excel

package
v0.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2026 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package excel handles all Excel file operations

Package excel handles Excel file creation and management.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileFromScratch added in v0.14.0

func NewFileFromScratch() (*excelize.File, error)

NewFileFromScratch creates a new *excelize.File with all the sheets and initial structure that was previously provided by template.xlsx. It replaces the embedded binary so the project no longer requires template.xlsx at build time.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client handles Excel file operations

func NewClient

func NewClient() (*Client, error)

NewClient creates a new Excel client with a fresh file built from scratch.

func (*Client) Close

func (c *Client) Close() error

Close closes the Excel file

func (*Client) SaveFile

func (c *Client) SaveFile(path string) error

SaveFile saves the Excel file to the specified path

func (*Client) SetFileForTest

func (c *Client) SetFileForTest(file *excelize.File)

SetFileForTest sets the Excel file for testing purposes only

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL