pachyderm: Index | Files

package pretty

import ""


Package Files


func Ago Uses

func Ago(timestamp *types.Timestamp) string

Ago pretty-prints the amount of time that has passed since timestamp as a human-readable string.

func Duration Uses

func Duration(d *types.Duration) string

Duration pretty prints a duration in a human readable way.

func Size Uses

func Size(size uint64) string

Size pretty-prints size amount of bytes as a human readable string.

func TimeDifference Uses

func TimeDifference(from *types.Timestamp, to *types.Timestamp) string

TimeDifference pretty-prints the duration of time between from and to as a human-reabable string.

func UnescapeHTML Uses

func UnescapeHTML(s string) string

UnescapeHTML returns s with < and > unescaped.

Package pretty imports 5 packages (graph) and is imported by 7 packages. Updated 2019-03-04. Refresh now. Tools for package owners.