debug

package
v0.0.0-...-9a6de97 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorLocation

func ErrorLocation(err error) error

ErrorLocation provides a way to know what line/file an error occurred in.

func ErrorOut

func ErrorOut(msg string, err error, thing interface{}) error

ErrorOut is a convenience for constructing extremely informative debugging errors.

func MergeFields

func MergeFields(fieldSlice ...log.Fields) log.Fields

MergeFields takes a slice of logging fields and merges them together.

func StructFields

func StructFields(thing interface{}) log.Fields

StructFields is the set of fields on an interface that get used for log output.

func YamlString

func YamlString(thing interface{}) string

YamlString is a YAML representation of an interface.

Types

This section is empty.

Jump to

Keyboard shortcuts

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