Documentation ¶
Index ¶
- Constants
- func GetRelativeTime(clock Clock, timestamp time.Time) string
- func WriteCsv(items []api.Item, w io.Writer)
- func WriteJson(items []api.Item, w io.Writer)
- func WriteMarkdown(items []api.Item, clock Clock, w io.Writer)
- func WritePlain(items []api.Item, clock Clock, w io.Writer)
- type Clock
- type RealClock
- type Style
Constants ¶
View Source
const ( Plain Style = "plain" Markdown = "markdown" Json = "json" Csv = "csv" )
Variables ¶
This section is empty.
Functions ¶
func GetRelativeTime ¶
Converts a timestamp from the past to a high-level human-readable time string (e.g. "2 minutes ago", "5 years ago", etc).
Types ¶
Click to show internal directories.
Click to hide internal directories.