xls Go Library

repository·master·Indexed 43 days ago

https://github.com/extrame/xls

A pure Golang library based on the libxls implementation for reading Excel XLS spreadsheet files. It provides functions such as Open, OpenWithCloser, and OpenReader to handle file access and resource management.

Tokens
297
Snippets
3
Records
3
Agent score
6%

What's inside xls

  1. Open an XLS file from a reader

    master

    If your XLS data is already in memory or coming from a stream, use the OpenReader function. When using this method, you are responsible for closing the underlying reader in your own code.

    // Use OpenReader function to open xls from a reader, you should close related file in your own code
  2. Open an XLS file

    master

    To open an existing XLS file using the xls library, use the Open function. This function provides a direct way to access the file contents for reading.

    // Use Open function for open file
    // Note: The specific signature is available in GoDoc
  3. Open an XLS file with automatic resource management

    master

    If you want to ensure the file is properly closed after use, use the OpenWithCloser function. This function returns both the XLS object and a closer (typically an io.Closer) that you must call to release the file resources.

    // Use OpenWithCloser function for open file and use the return value closer for close file