utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const TimeUnitDescriptions = "ms - milliseconds\n" +
	"s - seconds\n" +
	"m - minutes\n" +
	"h - hours\n" +
	"d - days\n"

Variables

View Source
var TimeUnitsMap = map[string]struct{}{"ms": {}, "s": {}, "h": {}, "d": {}, "m": {}}

empty struct has width of zero. It occupies zero bytes of storage

Functions

func ConvertAgeToMillisecond

func ConvertAgeToMillisecond(unit string, age int64) int64

func DisplayDuration

func DisplayDuration(tt int64) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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