printer

package
v0.0.0-...-8d8dba0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pager

func Pager(s string, t string)

func RelativeTime

func RelativeTime(t string) string

RelativeTime converts a string like `2024-09-07 10:38:26` to a relative time expressed in days, e.g. `2 days ago` or `today`.

func TruncateExecTimeToNearest

func TruncateExecTimeToNearest(s string, precision int) string

TruncateExecTimeToNearest takes a string, split it on the fractional part, and truncates the fractional part to the nearest precision, without touching units in the suffix of the string.

func WrapLongLinesWithBackslashes

func WrapLongLinesWithBackslashes(sb *strings.Builder, cs int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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