kdump

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: Apache-2.0 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 ...interface{}) string

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

func FormatN

func FormatN(vs ...interface{}) 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 ...interface{})

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

func P

func P(vs ...interface{})

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

func Print

func Print(vs ...interface{})

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

func Println

func Println(vs ...interface{})

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

func V

func V(vs ...interface{})

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 added in v0.4.2

func (d KDumper) Dump(vs ...interface{})

Dump vars

func (KDumper) Format added in v0.4.2

func (d KDumper) Format(vs ...interface{}) string

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

func (KDumper) FormatN added in v0.4.2

func (d KDumper) FormatN(vs ...interface{}) string

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

func (KDumper) Fprint added in v0.4.2

func (d KDumper) Fprint(w io.Writer, vs ...interface{})

Fprint print vars to io.Writer

func (KDumper) Print added in v0.4.2

func (d KDumper) Print(vs ...interface{})

Print vars. alias of Dump()

func (KDumper) Println added in v0.4.2

func (d KDumper) Println(vs ...interface{})

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