excel

package
v1.1.0 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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