pretty

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2016 License: Apache-2.0 Imports: 6 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ago

func Ago(timestamp *google_protobuf.Timestamp) string

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

func Duration

func Duration(from *google_protobuf.Timestamp, to *google_protobuf.Timestamp) string

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

func Size

func Size(size uint64) string

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

func UnescapeHTML

func UnescapeHTML(s string) string

UnescapeHTML returns s with < and > unescaped.

Types

This section is empty.

Jump to

Keyboard shortcuts

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