core

package
v0.0.0-...-eb09a2a Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs[T MyInt](a T) T

func Max

func Max[T MyInt](a, b T) T
Example
fmt.Println(Max(100, 20))

fmt.Println(Min(100, 20))
Output:

100
20

func Min

func Min[T MyInt](a, b T) T

Types

type MyInt

type MyInt interface {
	int | int8 | int16 | int32 | int64
}

Jump to

Keyboard shortcuts

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