lists

package
v0.0.0-...-b4c4296 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: GPL-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package lists provides standard APIs for handling lists

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count

func Count(slice interface{}) (map[string]int, error)

func CropPartial

func CropPartial(list []string, partial string) []string

func CropPartialMapKeys

func CropPartialMapKeys(m map[string]string, partial string) map[string]string

func GenericToString

func GenericToString(list interface{}) ([]string, error)

GenericToString converts []interface to []string

func Match

func Match(a []string, s string) bool

func RemoveOrdered

func RemoveOrdered[T any](slice []T, i int) ([]T, error)

func RemoveUnordered

func RemoveUnordered[T any](slice []T, i int) ([]T, error)

func SumFloat64

func SumFloat64(dst, src map[string]float64)

func SumInt

func SumInt(dst, src map[string]int)

func SumInterface

func SumInterface(dst, src map[string]interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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