Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = New(os.Stdout, Indent(" "))
Default prints to os.Stdout with two space indentation.
Functions ¶
Types ¶
type Option ¶
type Option func(o *Printer)
An Option modifies the default behaviour of a Printer.
func AlwaysIncludeType ¶
func AlwaysIncludeType() Option
AlwaysIncludeType always includes explicit type information for each item.
func ExplicitTypes ¶
ExplicitTypes adds explicit typing to slice and map struct values that would normally be inferred by Go.
func Hide ¶
Hide excludes the given types from representation, instead just printing the name of the type.
func IgnoreGoStringer ¶
func IgnoreGoStringer() Option
IgnoreGoStringer disables use of the .GoString() method.
Click to show internal directories.
Click to hide internal directories.