util

package
v0.11.0-rc.6 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NA defines the "not available" placeholder.
	NA = "N/A"
)

Variables

This section is empty.

Functions

func Contains

func Contains(list []string, s string) bool

func DurationToString

func DurationToString(value time.Duration) string

func EqualStringSlicesUnordered

func EqualStringSlicesUnordered(x, y []string) bool

func MillisecondsToString

func MillisecondsToString(value float64) string

func MinutesAgo

func MinutesAgo(ts time.Time) uint

func RunInterval

func RunInterval(d time.Duration, fn func()) chan struct{}

func SecondsAgo

func SecondsAgo(ts time.Time) uint

Types

This section is empty.

Directories

Path Synopsis
Package operator contains operator helpers.
Package operator contains operator helpers.

Jump to

Keyboard shortcuts

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