sheetList

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package sheetList provides a simple data structure List for managing a list of sheets with associated data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type List

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

List represents a list of sheets with associated data.

func New

func New(m map[string]interface{}, options ...Option) *List

New creates a new List instance with the provided map of sheet data and applies options.

func (*List) Get

func (l *List) Get() (map[string]interface{}, []string)

Get retrieves the sorted list.

type Option

type Option func(*List)

Option is a functional option type for configuring List.

func WithSort

func WithSort(sortAsc bool) Option

WithSort is an option to set the SortAsc or SortDesc flag. If sortAsc is true, the list is sorted in ascending order. If sortAsc is false, the list is sorted in descending order.

Jump to

Keyboard shortcuts

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