math

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 1 Imported by: 1

Documentation

Overview

Package math implements basic operations on various types

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Max

func Max(a, b int) int

Max returns the larger of the 2 supplied int's

func MaxDuration

func MaxDuration(a, b time.Duration) time.Duration

MaxDuration returns the larger of the 2 supplied Durations

func MaxUint64

func MaxUint64(a, b uint64) uint64

MaxUint64 returns the larger of the 2 supplied uint64's

func Min

func Min(a, b int) int

Min returns the smaller of the 2 supplied int's

func MinDuration

func MinDuration(a, b time.Duration) time.Duration

MinDuration returns the smaller of teh 2 supplied Durations

func MinUint64

func MinUint64(a, b uint64) uint64

MinUint64 returns the smaller of the 2 supplied uint64's

Types

This section is empty.

Jump to

Keyboard shortcuts

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