formatter

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatBool added in v0.2.0

func FormatBool(b bool) string

FormatBool formats a bool as yes/no.

func FormatDuration

func FormatDuration(d time.Duration) string

FormatDuration formats a duration.

func FormatInt added in v0.2.0

func FormatInt(i int) string

FormatInt formats an int.

func FormatInt64 added in v0.2.0

func FormatInt64(i int64) string

FormatInt64 formats an int64.

func FormatTime added in v0.2.0

func FormatTime(t *metav1.Time) string

FormatTime formats a time using a human-readable format.

func FormatTimeAgo

func FormatTimeAgo(t *metav1.Time) string

FormatTimeAgo formats a time as a string representing the duration since the given time.

func FormatTimeWithTimeAgo

func FormatTimeWithTimeAgo(t *metav1.Time) string

FormatTimeWithTimeAgo formats a time together with a relative time ago as a string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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