output

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Print

func Print(c Config, defaultTemplate string, v interface{}) error

Print outputs v to os.Stdout while handling configured formats, if the optional t is given then it's processed as a go-template, this template will be handled with a tabwriter so you can use tabs (\t) and new lines (\n) to space your content evenly.

Types

type Config

type Config interface {
	Output() string
}

Jump to

Keyboard shortcuts

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