generic

package
v0.0.0-...-c053876 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Min

func Min[T constraints.Ordered](a, b T) T

func SumAsFloat

func SumAsFloat[T Str](a, b T, prec int) (T, error)

func SumAsInt

func SumAsInt[T Str](a, b T) (T, error)

Types

type Str

type Str interface {
	~string
}

Jump to

Keyboard shortcuts

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