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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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