output

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Err

func Err(err error, msg ...string)

Err prints a pretty colored error into output.

func Fatal

func Fatal(err error, msg ...string)

Fatal prints a pretty colored error into output and exits with code 1.

func Info

func Info(msg string, args ...interface{})

Info prints a pretty colored info messages into output.

func InfoWithCmd added in v1.1.0

func InfoWithCmd(msg string, cmd string)

func Show

func Show(omap *orderedmap.OrderedMap[string, any], msg ...string)

Show prints a string of model's fields and values in pretty readable way.

func ShowString

func ShowString(omap *orderedmap.OrderedMap[string, any], msg ...string) string

ShowString generates a string from orderedmap of model's fields and values in pretty readable way.

Types

This section is empty.

Jump to

Keyboard shortcuts

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