render

package
v0.0.259-pre-1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSON added in v0.0.252

func JSON(w io.Writer, v interface{}) error

func RelativeTime added in v0.0.252

func RelativeTime(t time.Time) string

func Table added in v0.0.252

func Table(w io.Writer, title string, rows [][]string, cols ...string) error

Table renders the table defined by the given properties into w. Both title & cols are optional.

func Time added in v0.0.252

func Time(t time.Time) string

Time is shorthand for t.Format(time.RFC3339).

func TitledJSON added in v0.0.252

func TitledJSON(w io.Writer, title string, v interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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