util

package
v0.0.0-...-6206b6d Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRandVal

func GenerateRandVal(n int) []byte

func Max

func Max(a, b int) int

Max of two int

func Retry

func Retry(f func() error, attempts int, sleep time.Duration) error

Retry function f sleep time between attempts

func Schedule

func Schedule(f func(), delay time.Duration) chan bool

Schedule repeatedly call function with intervals

func VMax

func VMax(v ...int) int

VMax of a vector

Types

This section is empty.

Jump to

Keyboard shortcuts

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