prettyprint

package
v0.0.0-...-5032dbf Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fprint

func Fprint(w io.Writer, x any) (err error)

func Fprintln

func Fprintln(w io.Writer, x any) (err error)

func Print

func Print(x any) error

func Println

func Println(x any) (err error)

func Sprint

func Sprint(x any) string

func Sprintln

func Sprintln(x any) string

Types

type Printer

type Printer struct {
	Writer         io.Writer
	ByteEncoder    func([]byte) string
	HideUnexported bool
}

func New

func New(w io.Writer) *Printer

func (Printer) Print

func (pp Printer) Print(x any) error

func (Printer) Println

func (pp Printer) Println(x any) error

Jump to

Keyboard shortcuts

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