v1

package
v0.0.0-...-ce13bd1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SumFloats

func SumFloats(m map[string]float64) float64

func SumInts

func SumInts(m map[string]int64) int64

func SumIntsOrFloats

func SumIntsOrFloats[K comparable, V int64 | float64](m map[K]V) V

func SumNumbers

func SumNumbers[K comparable, V Number](m map[K]V) V

Types

type Number

type Number interface {
	int64 | float64
}

Jump to

Keyboard shortcuts

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