Installation

Installation

Aspose.Cells FOSS for Go installs as a standard Go module with no external dependencies and no native Office libraries to configure.


Prerequisites

RequirementDetail
Go version1.24 or later (per the module’s go.mod)
Operating systemAny platform supported by the Go toolchain (Windows, Linux, macOS)
External dependenciesNone — go.mod declares no require entries
Microsoft OfficeNot required

Step 1: Add the module

Run go get inside your module’s directory to add Aspose.Cells FOSS for Go as a dependency:

go get github.com/aspose-cells-foss/Aspose.Cells-FOSS-for-Go/v26

This adds an entry to your project’s go.mod and go.sum.

Step 2: Import the package

Import the package under the cells_foss alias used throughout its own examples and documentation:

import cells_foss "github.com/aspose-cells-foss/Aspose.Cells-FOSS-for-Go/v26/aspose/cells_foss"

Step 3: Verify the installation

Build a minimal program that creates a Workbook to confirm the module resolves and compiles correctly:

package main

import (
	"fmt"

	cells_foss "github.com/aspose-cells-foss/Aspose.Cells-FOSS-for-Go/v26/aspose/cells_foss"
)

func main() {
	wb := cells_foss.NewWorkbook()
	fmt.Println("Aspose.Cells FOSS for Go is ready:", len(wb.Worksheets), "worksheet(s)")
}

Run it with go run . — a successful build with no import errors confirms the installation.


Next Steps

See Also