util

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigDir

func ConfigDir() (string, error)

func HomeDir

func HomeDir() string

func Print

func Print(output, template string, m proto.Message, tblPrn Printer, w io.Writer) error

func PrintJSON

func PrintJSON(m proto.Message, w io.Writer) error

func PrintJSONList

func PrintJSONList(data interface{}, w io.Writer) error

func PrintList

func PrintList(output, template string, list interface{}, tblPrn Printer, w io.Writer) error

func PrintTemplate

func PrintTemplate(data interface{}, tmpl string, w io.Writer) error

func PrintYAML

func PrintYAML(m proto.Message, w io.Writer) error

func PrintYAMLList

func PrintYAMLList(data interface{}, w io.Writer) error

func ReadStdinInto

func ReadStdinInto(v proto.Message) error

func Telemetry

func Telemetry(version string, t time.Time)

Types

type Printer

type Printer func(interface{}, io.Writer) error

Jump to

Keyboard shortcuts

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