Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustPrint ¶ added in v2.1.2
func MustPrint(v interface{})
MustPrint print an interface and panic if there is any sort of error
func MustPrintMulti ¶ added in v2.1.2
func MustPrintMulti(v ...interface{})
MustPrintMulti print an multiple interfaces and panic if there is any sort of error
func Print ¶ added in v2.1.2
func Print(v interface{}) (err error)
Print print an interface using the given Formatter and io.Writer
func PrintMulti ¶ added in v2.1.2
func PrintMulti(v ...interface{}) (err error)
PrintMulti useful when wanting to print multiple interfaces to a single serialized item
func SetFormatter ¶ added in v2.1.2
SetFormatter sets the Formatter to use for the text.
Types ¶
type Gout ¶
type Gout struct {
// contains filtered or unexported fields
}
Gout is a structure you can use that contains a formatter, and a target io.Writer
func (*Gout) MustPrintMulti ¶
func (g *Gout) MustPrintMulti(v ...interface{})
func (*Gout) PrintMulti ¶
func (*Gout) SetFormatter ¶
type Option ¶ added in v2.1.2
type Option func(*Gout)
Option is an option that can be passed in to help configure a Gout instance
func WithFormatter ¶ added in v2.1.2
WithFormatter can be passed to New(), specifying which Formatter should be used for output
func WithWriter ¶ added in v2.1.2
WithWriter can be passed to New(), specifying which writer should be used for output