functions

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IntGte = Gte[int]
	IntLte = Lte[int]
	IntSum = Sum[int]
)
View Source
var Noop = func(e any) error { return nil }
View Source
var Print = func(e any) error { Println(e); return nil }
View Source
var PrintJson = func(e any) error { v, _ := json.Marshal(e); fmt.Println(string(v)); return nil }

Functions

func Gte

func Gte[T constraints.Ordered](e1 T, e2 T) bool

func IntToInt64

func IntToInt64(a int) int64

func IntToString

func IntToString(a int) string

func Lte

func Lte[T constraints.Ordered](e1 T, e2 T) bool

func Println

func Println[T any](a T)

func Sum

func Sum[T constraints.Ordered](e1, e2 T) T

Types

This section is empty.

Jump to

Keyboard shortcuts

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