pretty

package
v2.0.0-beta.13 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Simple = sync.OnceValue(func() *pp.PrettyPrinter {
	printer := pp.New()
	printer.SetColoringEnabled(false)
	printer.SetExportedOnly(false)
	printer.SetOmitEmpty(true)
	printer.SetMaxDepth(3)
	return printer
})

Simple is a simple pretty printer

Functions

func Fatal

func Fatal(a ...any)

Fatal is a wrapper for pp.Fatal

func Fatalf

func Fatalf(format string, a ...any)

Fatalf is a wrapper for pp.Fatalf

func Fatalln

func Fatalln(a ...any)

Fatalln is a wrapper for pp.Fatalln

func Printf

func Printf(format string, a ...any)

Printf is a wrapper for pp.Printf

func Println

func Println(a ...any)

Println is a wrapper for pp.Println

func SetDefaultMaxDepth

func SetDefaultMaxDepth(v int)

SetDefaultMaxDepth is a wrapper for pp.SetDefaultMaxDepth

func SetWriter

func SetWriter(o io.Writer)

SetWriter is a wrapper for pp.SetWriter

func SimplePrint

func SimplePrint(v any) string

SimplePrint is a simple pretty printer

func Sprint

func Sprint(a ...any) string

Sprint is a wrapper for pp.Sprint

func Sprintln

func Sprintln(a ...any) string

Sprintln is a wrapper for pp.Sprintln

Types

This section is empty.

Jump to

Keyboard shortcuts

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