kdump

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package kdump like fmt.Println but more pretty and beautiful print Go values.

Package kdump like fmt.Println but more pretty and beautiful print Go values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(vs ...any) string

Format like fmt.Println, but the output is clearer and more beautiful

func FormatN

func FormatN(vs ...any) string

Custom method outside the original dump package FormatN like fmt.Println, but the output is clearer and no color

func Fprint

func Fprint(w io.Writer, vs ...any)

Fprint like fmt.Println, but the output is clearer and more beautiful

func P

func P(vs ...any)

P like fmt.Println, but the output is clearer and more beautiful

func Print

func Print(vs ...any)

Print like fmt.Println, but the output is clearer and more beautiful

func Println

func Println(vs ...any)

Println like fmt.Println, but the output is clearer and more beautiful

func V

func V(vs ...any)

V like fmt.Println, but the output is clearer and more beautiful

Types

type KDumper

type KDumper dump.Dumper

func New

func New() KDumper

func (KDumper) Dump

func (d KDumper) Dump(vs ...any)

Dump vars

func (KDumper) Format

func (d KDumper) Format(vs ...any) string

Format like fmt.Println, but the output is clearer and more beautiful

func (KDumper) FormatN

func (d KDumper) FormatN(vs ...any) string

Custom method outside the original dump package FormatN like fmt.Println, but the output is clearer and no color

func (KDumper) Fprint

func (d KDumper) Fprint(w io.Writer, vs ...any)

Fprint print vars to io.Writer

func (KDumper) Print

func (d KDumper) Print(vs ...any)

Print vars. alias of Dump()

func (KDumper) Println

func (d KDumper) Println(vs ...any)

Println vars. alias of Dump()

func (KDumper) WithCallerSkip

func (d KDumper) WithCallerSkip(callerSkip int) KDumper

func (KDumper) WithColorTheme

func (d KDumper) WithColorTheme(theme dump.Theme) KDumper

func (KDumper) WithIndentChar

func (d KDumper) WithIndentChar(char byte) KDumper

func (KDumper) WithIndentLen

func (d KDumper) WithIndentLen(indentLen int) KDumper

func (KDumper) WithMaxDepth

func (d KDumper) WithMaxDepth(depth int) KDumper

func (KDumper) WithNoColor

func (d KDumper) WithNoColor() KDumper

func (KDumper) WithNoType

func (d KDumper) WithNoType() KDumper

func (KDumper) WithOutput

func (d KDumper) WithOutput(output io.Writer) KDumper

func (KDumper) WithShowFlag

func (d KDumper) WithShowFlag(flag int) KDumper

Jump to

Keyboard shortcuts

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