humanize

package
v0.0.5-0...-0379fef Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Day  = 24 * time.Hour
	Week = 7 * Day
	Year = 365 * Day
)

Variables

View Source
var ByteUnits = [...]string{"bytes", "KB", "MB"}
View Source
var Locale monday.Locale = monday.LocaleEnUS // changed on init

Functions

func DuraCeil

func DuraCeil(d, acc time.Duration) time.Duration

func Size

func Size(sz uint64) string

func Strings

func Strings(list []string) string

func TimeAgo

func TimeAgo(t time.Time) string

func TimeKitchen

func TimeKitchen(t time.Time) string

func TrimString

func TrimString(str string, maxlen int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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