prettyprint

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2018 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content struct {
	Obj      interface{}
	Format   Format
	Writer   io.Writer
	Template string
}

func (*Content) Print

func (pp *Content) Print() error

type Format

type Format string
const JSONFormat Format = "json"
const StringFormat Format = "string"
const TemplateFormat Format = "tpl"

Jump to

Keyboard shortcuts

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