pretty

package
v2.0.0-alpha.17 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2025 License: MIT Imports: 4 Imported by: 0

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
})

Functions

func Fatal

func Fatal(a ...any)

func Fatalf

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

func Fatalln

func Fatalln(a ...any)

func Printf

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

func Println

func Println(a ...any)

func SetDefaultMaxDepth

func SetDefaultMaxDepth(v int)

func SetWriter

func SetWriter(o io.Writer)

func SimplePrint

func SimplePrint(v any) string

func Sprint

func Sprint(a ...any) string

func Sprintln

func Sprintln(a ...any) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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