format

package
v0.0.0-...-aa656b0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

* Utility functions for formatting output.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abbrev

func Abbrev(s string, max int) string

Print string with max length, truncating with ellipsis.

func GitEmail

func GitEmail(email string) string

func Number

func Number(num int) string

Adds thousands comma and abbreviates numbers > 1m

func RelativeTime

func RelativeTime(now time.Time, t time.Time) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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