writer

package
v0.0.0-...-4665912 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONFormatter

func JSONFormatter(wr io.Writer, message interface{})

func PlainFormatter

func PlainFormatter(wr io.Writer, message interface{})

Types

type FormatFunc

type FormatFunc func(wr io.Writer, message interface{})

type StringWriter

type StringWriter struct {
	// contains filtered or unexported fields
}

func New

func New(wr io.Writer, formatter FormatFunc) *StringWriter

func (*StringWriter) Write

func (w *StringWriter) Write(message interface{})

Jump to

Keyboard shortcuts

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