humanize

package
v0.0.0-...-6513b37 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var Locale monday.Locale = monday.LocaleEnUS // changed on init

Functions

func Error

func Error(err error) string

Error returns a short error string.

func TimeAgo

func TimeAgo(t time.Time) string

func TimeAgoLong

func TimeAgoLong(t time.Time) string

func TimeAgoShort

func TimeAgoShort(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