list

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package list provides functions for working with lists.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsIndexValid

func IsIndexValid(index, length int) (err error)

IsIndexValid checks if the index is valid within the slice based on the given index and length.

func ParseCount

func ParseCount(length int, counts ...int) int

ParseCount function returns the count of elements based on the provided length and counts

func ParseIndex

func ParseIndex(index, length int) int

ParseIndex returns the valid index within the slice based on the given index and length.

func SearchCount

func SearchCount(length int, counts ...int) int

SearchCount function returns the count of elements for searching based on the provided length and counts

func SliceIndex

func SliceIndex(index, length int, accessible bool) int

SliceIndex returns the valid index within the slice based on the given index, length, and accessibility flag.

Types

This section is empty.

Jump to

Keyboard shortcuts

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